• Resolved asafm7

    (@asafm7)


    Google Optimize tag doesn’t seem to load on non-AMP pages (pages where AMP was specifically disabled) when the site is on AMP Standard mode.

Viewing 4 replies - 16 through 19 (of 19 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Thanks for the update and further testing.

    So as I understand it, the issue is the fact that the snippet has been manually added not by Site Kit.

    At present if you add your Optimize container via Site Kit it will look for a Site Kit inserted snippet to attach the Optimize container ID to. If you don’t have any Analytics snippet added via Site Kit then yes, this can result in the non placement of an Optimize container. We’ve opened a GitHub issue for this. Many thanks for helping us identify this possibility.

    Sorry to hear also you’ve had to disable AMP on your site. It may take further configuration for AMP URLs although if you do decide to revisit AMP with Optimize and Site Kit we’d be happy to help where possible.

    Google Optimize is only working when Google Tag Manager is disconnected. Is this known/intended?

    While typically this isn’t the case if you’ve inserted your Analytics tags via Tag Manager and Site Kit hasn’t inserted any Analytics snippets (within the Analytics module) then there is a possibility that the Optimize snippet will not be added. The placement of an Optimize snippet within Site Kit at present is dependent on the plugin having inserted an Analytics tag on your site (with a Univeral or GA4 tag).

    If you’re just using Tag Manager alone without any Analytics tag then this doesn’t impact the Optimize snippet placement or functionality.

    Let us know if you have any further questions on the above and we’d be happy to help.

    Thread Starter asafm7

    (@asafm7)

    Thanks.

    So what I have done and seems to be working:

    1. Gave up AMP. I’ve been trying for months to get GA, Optimizer, Tag Manager, and AMP working together. A new issue always comes up. Maybe I will give it another try in the future.
    2. In Google Tag Manager, when sending an event to Google Analytics, instead of using a Google Analytics Settings variable, which seems to confuse Site Kit, I’m using the “Enable overriding settings in this tag” option. Tell me if it makes sense.

    BTW, when trying to connect Optimize to GA4 it says GA4 isn’t supported yet for Optimize. It’s not on your end, but I wondered if you are aware of it and took it into account.

    Thanks again for all the support.

    Plugin Support James Osborne

    (@jamesosborne)

    Great that you got it working. Understood in relation to AMP. Be sure to reach out if you do decide to use AMP again with Site Kit and Optimize.

    In Google Tag Manager, when sending an event to Google Analytics, instead of using a Google Analytics Settings variable, which seems to confuse Site Kit, I’m using the “Enable overriding settings in this tag” option. Tell me if it makes sense.

    Using the “Enable overriding settings in this tag” should work fine. I have no problems setting this up with a Tag Manager inserted Analytics tag. Just be sure you have allowed Site Kit to insert your GA4 snippet of you’re looking to insert your Optimize container snippet via Site Kit, with the plugin inserting the Optimize snippet only next to a Site Kit placed Analytics snippet at present.

    BTW, when trying to connect Optimize to GA4 it says GA4 isn’t supported yet for Optimize.

    We’re aware of this and we’ve left some notes within the GitHub issue so those working on any updates to this will also have some additional context.

    Plugin Support Bethany Chobanian Lang

    (@mxbclang)

    @asafm7 As we haven’t received a response, I’ll mark this as resolved. Feel free to open a new support topic if you continue to encounter issues, or reopen this topic and we’d be happy to assist. Thank you!

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Google Optimize tag on non-AMP pages when site is on AMP Standard mode’ is closed to new replies.