Analytics code breaks AMP validation

Created on 5 June 2020, about 4 years ago
Updated 25 June 2023, about 1 year ago

I've got the google_analtyics module on a site and the generated GTag block is causing a validation failure with the AMP generated version of the page. Is there an easy way I can tweak the app to only display when the ?amp query string isn't present in the url? I've hunted for a setting as I assumed I'd missed it, but there doesn't appear to be any way to get this module and the AMP module to play well with each other.

πŸ’¬ Support request
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom paultgreen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States erku

    HELP PLEASE!
    I am trying to implement GA4 (Google Analytics 4) in Drupal 9 and no matter what I try, it's not working. Can someone please help? How do you get GA4 working in Drupal AMP?

    Thank you

Production build 0.69.0 2024