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

[google-analytics] Equivalence of ga(set,...) in analytics.js ? #186

Open
SegmentDestinationsBot opened this issue Aug 13, 2019 · 0 comments

Comments

@SegmentDestinationsBot
Copy link
Contributor

Migrated from #77 by @ferozed

I am porting some ga code to use segment. There are the ga('set', .... ) calls for which I dont see a corresponding version in analytics.

It is not possible to pass in the custom dimensions as properties because they were being set in a different part of the page, and the track/page calls happen elsewhere.

What I am proposing is, we add a Analytics.prototype.set(props) method. The props would be buffered internally. And when users call track or page or identify, the api calls would be merged with those passed in with the set call. This way it would work for all integrations.

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