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

Multiple tracking IDs #30

Closed
2 of 3 tasks
reslear opened this issue Nov 7, 2023 · 3 comments
Closed
2 of 3 tasks

Multiple tracking IDs #30

reslear opened this issue Nov 7, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@reslear
Copy link

reslear commented Nov 7, 2023

Describe the feature

multiple trackingIds in config:

id: string | string[] - (id) => [].contact(id).foreach((_id) => gtag('config', _id))

and add sugar method for runtime - configureTrack.

https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-google-gtag/src/gatsby-ssr.js#L65

also maybe need add sugar method to get clientId and prevent duplications
https://www.analyticsmania.com/post/get-google-analytics-client-id/

Additional information

  • Would you be willing to help implement this feature?
  • Can you think of other implementations of this feature?

Final checks

@johannschopplich johannschopplich changed the title multiple trackingIds Multiple tracking IDs Nov 7, 2023
@johannschopplich
Copy link
Owner

Good idea. Should be pretty straight forward to implement. PR welcome! 🙂

@johannschopplich johannschopplich added the enhancement New feature or request label Nov 7, 2023
@vietanhbui
Copy link

+1

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

Successfully merging a pull request may close this issue.

3 participants