Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setOptions only setting id and nothing else? #590

Open
TomDeSmet opened this issue Oct 8, 2024 · 0 comments
Open

setOptions only setting id and nothing else? #590

TomDeSmet opened this issue Oct 8, 2024 · 0 comments

Comments

@TomDeSmet
Copy link

Environment *

npm ls vue-gtag: [email protected]
npm ls vue: [email protected]

  1. Operating system: Windows
  2. Browser and version: Chrome 129.0.6668.90

Description *

I'm using VueGTag with bootstrap: false.
Then I use setOptions and pass the id and user_id properties in the config object.
After that, I call bootstrap().

Everything seems to work, but the config event I see in the GA debug tools does not contain the user_id property. Nor any other property I set in there (e.g. language).
The setOptions seems to work as the id is passed correctly because everything is getting tracked (if I omit that it doesn't start tracking or throws an error on bootstrapping).

So I'm not sure which event has the user_id and if it is even being sent...

Expected behavior

The config event has this: "config", "G-XXXXXXXXX", {send_page_view: false}
But I would expect something like this: "config", "G-XXXXXXXXX", {send_page_view: false, user_id: 'ABC' }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant