Skip to content

Tracking ID vs Measurement ID #56

Description

@Simacho239

Hi all,

I'm currently trying to use this package to integrate and test some simple Analytics events.

Issue
I'm struggling at the moment though to locate the right Tracking ID (TID) to use within a ScreenHit. I have a Measurement ID (e.g. G-XXXXXXXXXX) and Property ID (9 digit number) on Google Analytics, but using the debugging tool and checking the resulting link on this link testing site site it's returning an invalid TID.

Current usage of the package is (with the actual Measurement ID # used):
const analytics = new Analytics('G-XXXXXXXXXX', null, { debug: true });
analytics.hit(new ScreenHit('Home'))
.then(() => console.log("success"))
.catch(e => console.log(e.message));

Any help is greatly appreciated!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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