Skip to content

Tag is not compatible with custom data layer name #6

@joedarsh

Description

@joedarsh

Google Tag Manager allows you to set a custom data layer name to avoid conflicts with other Google tags, however in this template the default data layer name is hard coded (line 351):

const dataLayerPush = require('createQueue')('dataLayer');

This results in consent initialisation being pushed to the wrong tag if using a custom name.

I've come up against this and modified the template in our GTM property to use our custom data layer name, however it would be great if data layer name could be a configurable option in this template.

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