Skip to content

How to get page id #26

@riteshpallod

Description

@riteshpallod

I am very clueless on how to get the page id setup, I see from documentation it has to be around &_p but do not how to use it. can you please help?

the default snippet of "vars" works. Just that I want to track the % page views completed.

    <amp-analytics type="gtag" data-credentials="include">
      <script type="application/json">
        {
          "vars": {
            "GA4_MEASUREMENT_ID": "G-XXXX",
            "GA4_ENDPOINT_HOSTNAME": "www.google-analytics.com",
            "DEFAULT_PAGEVIEW_ENABLED": true,
            "GOOGLE_CONSENT_ENABLED": false,
            "WEBVITALS_TRACKING": false,
            "PERFORMANCE_TIMING_TRACKING": false,
            "SEND_DOUBLECLICK_BEACON": false
          }
      </script>

Also GA4 and AMP is a mess, thanks a lot for this work man :)

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