• Resolved alexhongnzyacon

    (@alexhongnzyacon)


    Hi thank you for this amazing plugin. I have used to deploy GA4 and Google Optimize.

    There’s an error I encountered when I created and tried to run a A/B test which reads: “Anti-flicker snippet installed after the Optimize snippet. The anti-flicker snippet needs to be installed before the Optimize snippet in the page.”

    Followed by a warning says: “Anti-flicker snippet configuration error
    The Optimize container is loaded via Google Tag Manager. The anti-flicker snippet should be configured to use the Tag Manager container ID (GTM-XXXXXXX), not the Optimize container ID (OPT-XXXXXX). While this won’t cause a problem when always firing the Optimize tag, it can adversely affect your site performance when you stop firing it, or if you fire it conditionally. In this case the best practice is to use the Tag Manager container ID in the anti-flicker snippet.”

    Could you please advise should I address this issue and how?

    Thank you so much.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter alexhongnzyacon

    (@alexhongnzyacon)

    Anyone? Or can I just leave it as it is and just run the AB testing? Thank you so much.

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    The Google Optimize integration in GTM4WP is usually for cases when you want to install the Optimize snippet directly and not within your GTM container. If you Optimize container is loaded via GTM, you should not use the integration in GTM4WP.

    Thread Starter alexhongnzyacon

    (@alexhongnzyacon)

    Hi Thomas,

    Thank you so much for your reply.

    Removed the Optimize from Google Tag Manager. And it worked. Thanks so much.

    Regards,
    Alex

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Google Optimize Error “Anti-flicker snippet installed after the Optimize…”’ is closed to new replies.