problem with script
-
Good morning everyone and thanks for the help, I do not write many in these forums because I always try to look and find the solution but this can with me …. I am trying to put the code so that only the tracking cookies are activated if we give it to accept but I can’t do it … In the template that I have installed on my website that is Endfold I have this code,
if ( function_exists(‘cookie_accepted’) && cookie_accepted() ) { <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=Google Analytics"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'MyID Google Analytics'); </script> }
I see that inside the plugin you can put script but as I read in some comments you have to put it inside the template, is it correct? What do I have to do to make it work?
The page I need help with: [log in to see the link]
- The topic ‘problem with script’ is closed to new replies.