- Home
- Uncategorized
- How To Get The Tracking ID in JavaScript · Google Analytics
How To Get The Tracking ID in JavaScript · Google Analytics
Sometimes we may want to fetch the tracking ID that was used to set up the Google analytics tracking when the pages loaded. This code gets the tracking id:
ga.getAll()[0].b.data.values[':trackingId']