Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get page id #26

Open
riteshpallod opened this issue May 18, 2023 · 1 comment
Open

How to get page id #26

riteshpallod opened this issue May 18, 2023 · 1 comment

Comments

@riteshpallod
Copy link

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 :)

@thyngster
Copy link
Member

I don't really what do you mean. If you could explain it further it would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants