Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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&gt;
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag(‘js’, new Date());

    gtag(‘config’, ‘G-K74744745l5’);
    </script>

    Thanks in advance.

    #1257887

    Hey 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,
    Rikard

    #1258862
    This reply has been marked as private.
    #1259088

    Hi,

    Thanks for that. Could you give us access to the actual site where this is not working as well please?

    Best regards,
    Rikard

    #1259447

    Hi, I have the same issue. The new GA4 tag code don’t work with Enfold, is not tracking.

    #1259683

    Hi 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,
    Victoria

    #1259706

    Ok 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.php

    #1259713

    Hi, I have the same issue. The new GA4 tag code don’t work with Enfold, it just doesn’t appear in the source code

    #1259857

    Hi 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

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.