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!
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!