• Resolved Robert C.

    (@rawbird)


    I have Site Kit and Web Stories configured for GA4. I want two separte properties (G-xxxx), due to a preferred setup by my ad provider.

    Site Kit inserts a GA snippet on Web Stories endpoints and I want to disable that.

    The Web Stories plugin has a setting for Google Analytics, but it doesn’t override Site Kit, it just adds a second GA4 snippet.

    I found a workaround using the filter googlesitekit_analytics-4_tag_amp_blocked.

    Is there a better/cleaner solution?

    • This topic was modified 1 year, 4 months ago by Robert C..
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    The Web Stories plugin has a setting for Google Analytics, but it doesn’t override Site Kit, it just adds a second GA4 snippet.

    When Site Kit is active, there is actually a dropdown on the Web Stories settings page where you can choose between three different options:

    1. Use Site Kit for analytics (default)
    2. Use only Web Stories for analytics
    3. Use both
    Thread Starter Robert C.

    (@rawbird)

    Thanks for the quick reply, @swissspidy.

    Interestingly, I don’t have the dropdown on the Web Stories settings page.

    There is an input field at the top of the page and the placeholder says: “Enter your Google Measurement ID”. This is where I enter the measurement ID, which is different from the one configured through Site Kit.

    Site Kit is connected to the same Analytics account, but a different property is configured and the “Place Google Analytics code” checkbox is checked.

    I’m using:

    • Site Kit Version 1.149.1
    • Web Stories Version 1.39.0
    Plugin Author Pascal Birchler

    (@swissspidy)

    Hmm that’s strange. I just tested this using the same versions with analytics set up in Site Kit and the dropdown is there. See:

    The option we use under the hood for this is web_stories_ga_tracking_handler, so you could filter that option to the value web-stories, which means only the measurement ID from Web Stories should be used.

    Thread Starter Robert C.

    (@rawbird)

    Strange indeed, thanks for sharing the screenshots.

    My Web Stories settings page:

    The settings page is missing the dropdown and there’s this notice under Google Analytics “Use Site Kit by Google to easily activate Google Analytics …”, but I use Site Kit and its configured:

    I use Web Stories a really long time (since 2020) , maybe over the years some setting didn’t get migrated … I don’t know, I’m just speculating.

    Thanks, I’ll take a look at web_stories_ga_tracking_handler next week

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Site Kit + Web Stories, separate GA4 properties’ is closed to new replies.