analytics.js-integration-google-analytics
analytics.js-integration-google-analytics copied to clipboard
Track custom dimensions for products
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 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 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
@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!
Do you plan on adding this support. This is pretty much a deal breaker for me.