gtm-support / vue-gtm

Simple implementation of Google Tag Manager for Vue
https://www.npmjs.com/package/@gtm-support/vue-gtm
MIT License
214 stars 26 forks source link

How to properly access `cid` value ? #339

Open Germain-condo-group opened 1 year ago

Germain-condo-group commented 1 year ago

Request / Idea

In the case of our app, we need to access the cid value from analytics. For now we found a workaround by accessing cookies _ga and replacing GA1.1.:

const cid = cookies.get('_ga').replace('GA1.1.', '');

Probably there is a better way to do it, do you know where I can access this value using the library or maybe on window instance ?

Shinigami92 commented 1 year ago

No, I suggest to ask this on StackOverflow