Google Analytics in ElementorPro + GeneratePress NOT in place
-
Hi there.
I use:
WP 5.4
Theme GeneratePress 2.4.2 via ChildTheme
SimpleCSS 1.1
Elementor v2.9.7
Elementor Pro v2.9.2
WPRocket 3.5.2Problem:
No Google Analytics cookie will be set by the plugin. I checked before and after pressing accepting button of the plugin.
Via SimpleCSS i hide the original theme GPHeader to use only an Elemetor header, because i have flexible design options, by insert the line:
.site-header {display:none}
Can it be, that your plug in is not putting the Google Analytics script into the Elementor header, because it doesn’t find it?
I tried both – put it into the header field and also into the show after body field.Here my script:
<!– Global site tag (gtag.js) – Google Analytics –>
<script async src=”https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-1″></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());gtag(‘config’, ‘UA-XXXXXXXX-1’);
</script>Same result: Cookie will not be set.
I checked with Google Tag Assistant in Chrome
Thanks for your help
J?rgThe page I need help with: [log in to see the link]
- The topic ‘Google Analytics in ElementorPro + GeneratePress NOT in place’ is closed to new replies.