Forum Replies Created
-
AuthorPosts
-
October 2, 2019 at 3:44 pm in reply to: Optimize the display of your sites by delaying the loading of the images #1144184
If you are using LayerSlider: It is already using lazy load and conditional script loading to optimise performance.
Otherwise you could try on of the lazy load-plugin to further optimise the loading process of images: https://wordpress.org/plugins/search/lazyload/
October 2, 2019 at 3:15 pm in reply to: Privacy settings: Google Tag Manager/Analytics active even after opt out? #1144174After checking the file functions-enfold.php I think I found the origin of the behaviour. Enfold is only looking for an Google Analytics Tracking ID and ignoring Google Tag Manager Container IDs which is in a format like GTM-XXXXXX instead of UA-XXXXXXX.
Maybe you want to include support for Google Tag Manager Container IDs as well?Regardless of opting in/opting out or using Google Analytics/Google Tag Manager, wouldn’t it be good _not_ to output the Analytics tag at all when a user didn’t opt in or a user did opt out? When the script is loaded from googletagmanager.com (which you are using in your code) personal data (in this case the ip address of the user) is transmitted to Google servers regardless the window[‘ga-disable-UA-XXXXXXX’] setting, right?
Btw. I think the ip anonymization on kriesi.at isn’t active: gtag(‘config’, ‘GA_TRACKING_ID’, { ‘anonymize_ip’: true });
GA_TRACKING_ID needs to be replaced with the actual tracking code I think.This information does not belong into the header or footer of the theme. You want to send it in the http headers. To achieve this you can use a .htaccess file (if you are using an apache webserver) and send the desired headers to the client.
As stated in the links:
You can enable it by modifying your Apache settings or your .htaccess file, and adding the following line to it:
Header set X-Content-Type-Options nosniff -
AuthorPosts