• Resolved N’Ckyola

    (@nckyola)


    I have installed Google Site Kit on my blog & all seems to be in order EXCEPT optimize.
    I get the 2 errors:
    1. Optimize plugin not found
    2. Analytics tracking code not found

    When I look at the source code, the code snippet appears as expected with 1 exception… Here is my source code:

    <script type=’text/javascript’>
    window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}
    gtag(‘js’, new Date());
    gtag(‘config’, ‘UA-xxxxxxxx-x’, {“anonymize_ip”:true,”optimize_id”:”GTM-xxxxxxx”} );
    </script>

    The only difference I see is that the optimize_id is in double quotes vs single tics as shown in google documentation (see below):
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag(‘js’, new Date());

    gtag(‘config’, ‘GA_TRACKING_ID’, { ‘optimize_id’: ‘OPT_CONTAINER_ID’});
    </script>

    Since I am using site kit I can’t adjust the code to see that is actually the problem. Please advise.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • @nckyola thanks for opening a topic!

    I get the 2 errors:
    1. Optimize plugin not found
    2. Analytics tracking code not found

    Could you provide a screenshot of where you are seeing these errors?

    You can provide a link to screenshots using a service like Imgur or Jumpshare.

    Thread Starter N’Ckyola

    (@nckyola)

    Hi, sorry for the delay. You can find the screen recording at https://jmp.sh/1dne2EO

    @nckyola no problem at all and thanks for the confirmation. We’re looking into this now too. I was able to recreate something similar and proceed with an experiment.

    Could you confirm if your experiment operates despite the error with the check?

    @nckyola could you log out of WordPress before you check the Optimize Installation again?

    Thread Starter N’Ckyola

    (@nckyola)

    Hi Renee.
    I logged out of WordPress to retest & still get the same error.
    https://jmp.sh/8Jy1wrI
    https://jmp.sh/5rXmssm

    @nckyola thanks for the update and screenshots!

    I was able to resolve the same with logging out of WordPress so that the Analytics script was detectable (by default the Analytics script isn’t inserted for logged in users). Let’s check a few things additionally:

    1) I notice in your Optimize settings the site is listed as serving over https:// instead of https:// where it is located: https://jmp.sh/homz24g

    Could you ensure references to the site in Optimize and Analytics are updated to https://?

    2) Could you temporarily disable your caching plugin (LiteSpeed Cache) when checking the site in Optimize while logged out of WordPress?

    Thread Starter N’Ckyola

    (@nckyola)

    I have made the changes as noted and am now getting the message “Analytics tracking code not found” and still getting the “Anti-flicker snippet not found” suggestion as well.
    https://jmp.sh/NPMkpjG

    @nckyola really appreciate the follow up and also the screenshot.

    I notice in the screenshot that you are checking the site while logged into WordPress since the top admin toolbar is in view: https://jmp.sh/hKOord0

    By default, Site Kit’s Analytics snippet which also includes the integration for Optimize is not included for logged-in users due to this setting being toggled on under Site Kit > Settings > Analytics > Edit. Optimize is looking for this snippet.

    To make the check, log out of WordPress in the browser where you also have access to the Optimize account and have the Optimize extension installed. I would also suggest clearing the browser and plugin cache to ensure you have a fresh page to analyze.

    (I currently don’t see Site Kit’s snippet on the site, you’ll want to restore it and the connections before attempting this).

    Let me know if this helps!

    @nckyola since we have not heard from you, I am marking your topic as resolved. If you need further assistance, feel free to open a new support topic.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Optimize errors’ is closed to new replies.