Jump to content

GDPR and Google API / Load Scrips via CDN


Daniel.de

Recommended Posts

Hi Alejandro,

to make our JReviews Site GDPR conform I am using a cookie consent solution of usercentrics. This works only if you include the respective scripts as follows:

 

<script  type="text/plain" data-usercentrics="Google Adsense" async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

I need to do it also for the Google API Script which is loaded by JReviews Maps:

<script src="https://maps.google.de/maps/api/js?v=quarterly&key=XXXXXXXXXXXXXXX&language=de&libraries=places" type="text/javascript" defer="defer"></script>

In which file I can modify this?

Also I tried to load all JReviews Scripts via CDN. I know there are plugins (like Regular Labs CDN) which can do it for me. But I prefer to do it by my own to have more control about it. I played around with your new filter_functions (function remove_scripts). But there are scripts that are not loaded on every page. In which files are the script and CSS folders for JReviews and the Addons set?

 

Thanks a lot

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...