-
AuthorPosts
-
November 2, 2020 at 12:54 pm #1257572
Hi
We’ve been trying to use the Enfold Child ‘Google Services’ interface to add the new GA4 script to a website we have just built.
When we save the settings in Enfold the code is not displaying on the actual web pages (FYI we’ve cleared cache and used an incognito window). We were wondering if this is because Enfold does not recognise the new Google “G-” code (which the replaces the former UA code). (The new script is below but I have edited the actual G- code for security purposes). To see if this was an isolated issue we copied some GA script code from a different website that contained the UA code format and that worked, so we have concluded that the new GA4 code is not being accepted by Enfold Child. Are you aware of this issue? FYI Google is now forcing all new GA account set-ups to to use the new GA4 script so we can’t obtain a UA code. We’re also using the moist recent version of Enfold.<!– Global site tag (gtag.js) – Google Analytics –>
<script async src=”https://www.googletagmanager.com/gtag/js?id=G-M4DQTLRF4H”></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());gtag(‘config’, ‘G-K74744745l5’);
</script>Thanks in advance.
November 3, 2020 at 7:46 am #1257887Hey Rustybucket,
We haven’t heard of any other customers having this problem, so I’m not sure to be honest with you. Could you give us login details to your site in private so that we can have a closer look please? Also please share the full code in private so that we can try to add it to your site.
Best regards,
RikardNovember 6, 2020 at 1:52 pm #1258862This reply has been marked as private.November 8, 2020 at 5:19 am #1259088Hi,
Thanks for that. Could you give us access to the actual site where this is not working as well please?
Best regards,
RikardNovember 10, 2020 at 2:20 am #1259447Hi, I have the same issue. The new GA4 tag code don’t work with Enfold, is not tracking.
November 10, 2020 at 10:55 pm #1259683Hi juanluc,
Please open a new ticket for your problem. Provide us admin access to have a deeper look into the issue, as well as precise links where we can see the issue. Screenshots highlighting what’s going on would help a lot (imgur.com, dropbox).
Best regards,
VictoriaNovember 10, 2020 at 11:44 pm #1259706Ok thanks but not much to show. Just say that if I add the new code (GA4 G-XXXX) in the Google Services field it doesn’t work. It does not tracking.
Only it works if I add the code as a function in function.phpNovember 10, 2020 at 11:59 pm #1259713Hi, I have the same issue. The new GA4 tag code don’t work with Enfold, it just doesn’t appear in the source code
November 11, 2020 at 12:55 pm #1259857Hi everyone,
There seems to be a problem with the new Analytics tracking code if it’s placed in the theme options, the problem has been reported to our developers. In the meantime, could you try adding it using a function in your functions.php file instead please?
function new_analytics_tracking(){ ?> Your tracking code goes here <?php } add_action('wp_head', 'new_analytics_tracking');
If you didn’t start this thread and need further help, then please open a new thread and include admin WordPress login details in private.
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.