Skip to content

[google-analytics] useGoogleAmpClientId should be useAmpClientId #187

@SegmentDestinationsBot

Description

@SegmentDestinationsBot

Migrated from #79 by @westcoastbias

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions