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

Track custom dimensions for products

Open nordjac opened this issue 8 years ago • 5 comments

Today it's impossible to have custom dimensions for products. https://community.segment.com/t/636nry/google-analytics-integration

Is there any way of doing this?

nordjac avatar Jan 23 '17 13:01 nordjac

@nordjac hey there! We've actually had this request before and tried to implement it. However, iirc we've had issues with it. It's possible that you are not able to do this natively with GA's ecommerce api.

You may be able to attach custom dimensions at the event level but not at the product detail level. See context here: https://github.com/segment-integrations/analytics.js-integration-google-analytics/pull/20

Will reopen if you show documentation that says otherwise! And we can take a crack at it again!

hankim813 avatar Jan 23 '17 19:01 hankim813

@hankim813 This is not a problem as long as you set up the correct custom metric/dimensions in GA: https://support.google.com/analytics/answer/2709828?hl=en#example-product

image

nordjac avatar Jan 23 '17 19:01 nordjac

@nordjac yeah looks like we're not doing this correctly then for sure:

https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce#measuring-actions

We can just check for your CM settings somewhere here:

https://github.com/segment-integrations/analytics.js-integration-google-analytics/blob/master/lib/index.js#L864-L882

Will reopen, track the issue internally and provide an update here!

hankim813 avatar Jan 23 '17 20:01 hankim813

Do you plan on adding this support. This is pretty much a deal breaker for me.

subpx avatar Sep 28 '17 22:09 subpx

Hi @nordjac, 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