Skip to content
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.
This repository has been archived by the owner on Sep 3, 2022. It is now read-only.

'global' id in HTML tag causes analytics.js to fail badly #29

Closed
@disruptek

Description

If you, as I do, have a page with, say, a <div id="global">...</div> then analytics.js will load and run via the snippet, but will not overwrite the window.analytics variable and playback the stubbed call queue. A call to page() will be made with the defaults, but that's the only sign that anything at all happened.

And, yes, this absolutely gave me fits while trying to debug...

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