• Resolved vagu71

    (@vagu71)


    When adding google analytics to the AMP version of the site, the plugin is creating duplicate urls,

    So for example, if careers is a CPT on the site, the following urls are being generated:

    /careers/amp
    /careers/?amp
    /careers/?amp=
    /careers/?amp=1

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter vagu71

    (@vagu71)

    “Change End Point to ?amp” has been set to yes in the backend.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    It shouldn’t do it actually, can you share the screenshot of where do you see that error?

    Thread Starter vagu71

    (@vagu71)

    Here you go: https://ibb.co/Rvy1rB5. Let me know if you’re able to access it. This is a screenshot from inside of Google Analytics.

    I’m thinking, when the user opens the careers page on their mobile, it loads the url careers/?amp.

    So what exactly could be pulling up the other two links (/?amp= and /?amp=1)?

    Thanks Ahmed!

    Thread Starter vagu71

    (@vagu71)

    I checked the plugin code in greater detail. /?amp=1 appears to be ok and expected.

    What concerns me is what could be causing links like “/?amp=” to show up?

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    That is extremely strange, “/?amp=” shouldn’t be appearing. There must be a link somewhere if you can share the URL then I can analyze it and let you know.

    Thread Starter vagu71

    (@vagu71)

    @ahmedkaludi is there an email I can mail you the link on? Would not want to share the link here on a public forum.

    We searched the entire website code and database manually, but were not able to find “/?amp=”.

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Create a bug report on https://github.com/ahmedkaludi/accelerated-mobile-pages/issues
    our development team works closely to bug reports.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Duplicate AMP URLs’ is closed to new replies.