analytics.js-integration-google-analytics icon indicating copy to clipboard operation
analytics.js-integration-google-analytics copied to clipboard

Equivalence of ga(set,...) in analytics.js ?

Open ferozed opened this issue 7 years ago • 1 comments

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.

ferozed avatar May 20 '18 22:05 ferozed

Hi @ferozed, as part of the monorepo migration, this issue has been moved to new issue. Our engineers have been notified and will prioritize and work on it ASAP. Thank you!

For more information, see README.md.

SegmentDestinationsBot avatar Aug 13 '19 22:08 SegmentDestinationsBot