Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.
This repository was archived by the owner on Apr 28, 2022. It is now read-only.

Google Tag Manager is loaded when it shouldn't be #572

@litzinger

Description

@litzinger

So we just deployed, and our production site is loading in Bing, AdWords, and Linked in scripts/cookies b/c those are enabled via Google Tag Manager in production as an integration. When Before the user has accepted consent, our integrations config is the following:

integrations: {
    'All': false,
    'Google Analytics': true
}

Once the user has accepted cookies, we set the integrations to:

integrations: {
    'All': true
}

So given the documentation it should only load GA, but GTM is also being included and delivered to the page, thus multiple ad tracking tools are being included before the user has accepted cookies.

It seems like a pretty big problem that GTM is lumped in with GA and those additional integrations are loading in the page even though we have not told them to and the user has not accepted consent.

To test, I commented out the additional .page() calls, so only the single .load() call with the default options, which has all integrations set to false is called. Even then, the GTM is loaded into the page, thus Bing, Twitter, LinkedIn etc are coming in. This is not good for GDPR. Is there something we're doing wrong? We've tested before without GTM as an enabled destination and it appeared to respect our integrations settings on load, but GTM seems to be the outlier... Segment just is not respecting that setting and loading GTM all the time, even if we have 'All' set to false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions