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

Support setting "user_properties" scope #34

Closed
leo-petrucci opened this issue Apr 23, 2023 · 2 comments · May be fixed by #46
Closed

Support setting "user_properties" scope #34

leo-petrucci opened this issue Apr 23, 2023 · 2 comments · May be fixed by #46

Comments

@leo-petrucci
Copy link

I've noticed this library doesn't seem to support the very useful user_properties scope. Is there a reason why this isn't implemented or would you accept a PR to add it?

I was going to clone the source for my own project to add it, but it'd be far better if it was part of the library itself!

@MForMarlon
Copy link
Contributor

@leo-petrucci You should be able to do it via ReactGA.set({ user_properties: { ... }});

@codler
Copy link
Owner

codler commented Dec 8, 2023

ReactGA.gtag('set', 'user_properties', {
  favorite_composer: 'Mahler',
  favorite_instrument: 'double bass',
  season_ticketholder: 'true'
});

@codler codler closed this as completed Dec 8, 2023
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

Successfully merging a pull request may close this issue.

3 participants