
-
AuthorPosts
-
February 11, 2019 at 1:58 pm #1065423
Hi as i ask in the Comments Section on Themeforrest here are my Questions again.
1. i want to use the youtube-nocookie URL for using youtube videos in the video element, but after add the link and save setting, include a preview image, only the preview image is shown. By click on the play button only the link to youtube is shown over the preview image and you must click on the link to again to open the video in a new tab.
Is it possible to release it in this way, that you add a youtube no cookie link to a preview image and if you click on the image the video starts in a lightbox?
2. i read here some posts about GA and deactivate it. some as i read is that there a a problem to add the opt out in this way
<a href="javascript:gaOptout()">Disable Google Analytics</a>
and it will formated new (as text), aber change something again on the page.2a. does this shortcode with the GA switch works propperly?
so my question is have you (enfold team) a best practice, maybe a tutorial how to add GA GDPR compline to a webproject? include using it anoyminous? i have read something like to add this to the google service section, but i’m not save if this is anoyminous:
<script type="text/javascript"> var gaProperty = 'UA-xxxxx-xx'; var disableStr = 'ga-disable-' + gaProperty; if (document.cookie.indexOf(disableStr + '=true') > -1) { window[disableStr] = true; } function gaOptout() { document.cookie = disableStr + '=true; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/'; window[disableStr] = true; alert('Das Tracking durch Google Analytics wurde in Ihrem Browser für diese Website deaktiviert.'); } </script>
because i read that this must look like something like taht:
<script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-XXXXXXX-X', 'website.de'); ga('set', 'anonymizeIp', true); ga('send', 'pageview'); </script>
or that:
<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXXXX-YY']); _gaq.push(['_gat._anonymizeIp']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>
thx for a tipp, link or somethings else tom
February 14, 2019 at 2:36 am #1066730Hey dq-8,
Thank you for using Enfold.
1.) Are you using the embed version of the url? That is not going to work with the video element. You have to use the default url. Unfortunately, it doesn’t support the youtube nocookie domain.
2.) There is an available shortcode that will allow users to opt out of the GA tracker.
[av_privacy_google_tracking]
Just add it anywhere in the page. More info about GA anonymization.
// https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#anonymizeIp
Best regards,
IsmaelFebruary 15, 2019 at 2:14 pm #1067452Hi Ismael
thx for your support.
1. yes i use a url (for example) https://www.youtube-nocookie.com/embed/ID-from-the-used-video. that i copy out from the embeded iframe elmenet with extended privacy. problem is if i use the iframe with only embeded video link yt tracked the visitor in the moment when he enter the page. so i want to use it so that you can visit the page and if you click on a preview image the lightbox start with the video. and yt track than from this moment. this is safer for make the page gdpr compliance.
2. thx for the tip. this shortcode does work with the second version of the ga js snipped (to get it anomynous)?
best regards tom
February 18, 2019 at 6:30 am #1068139Hi,
1.) Like I said, the embed url format is not supported by the element, so you have to use the default url. Unfortunately, you can’t use the nocookie domain for the default url.
2.) Yes, it uses the default GA disabling or opt out script.
// https://developers.google.com/analytics/devguides/collection/analyticsjs/user-opt-out
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.