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

useGoogleAmpClientId should be useAmpClientId

Open westcoastbias opened this issue 7 years ago • 1 comments

currently the ga creation with useGoogleAmpClientId set to true looks like this:

Running command: ga("create", "UA-81924801-3", {cookieDomain: "none", siteSpeedSampleRate: 1, sampleRate: 100, allowLinker: true, useGoogleAmpClientId: true})

GA debugger chrome tool throws the following warning:

Create config had an unknown parameter: "useGoogleAmpClientId"

Based on google's documentation on implementing AMP (https://support.google.com/analytics/answer/7486764), the field should be "useAmpClientId". Example from the docs:

ga('create', 'UA-XXXXX-Y', 'auto', {'useAmpClientId': true});

This results in different client ids being used for AMP vs non-AMP events, which results in two separate sessions.

westcoastbias avatar Aug 01 '18 18:08 westcoastbias

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