• Once Google Analytics is selected and the option saved, it can’t be removed anymore. Even if the ID is left empty, the code is added to the page (with no ID).

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mohammed Kaludi

    (@mohammed_kaludi)

    Hey @cwfaraday,

    We do not have this feature at the moment, but I have created an Issue regarding this in the GitHub https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/846 and will make sure it will fix in future updates.

    Thank you,
    Mohammed Kaludi

    Plugin Contributor ampforwp

    (@ampforwp)

    Hey @cwfaraday,

    Click the ‘x’ button shown in Analytics option( https://take.ms/NySoF ), After you click that ‘x’ the field becomes empty and it will show ‘Select an item’ again and the Analytics code will be automatically removed.
    ScreenShot> https://take.ms/G6UZ3. (Don’t forget to save the changes).

    Please try that and let us know if that solves your problem or not.

    Regards
    Marqas

    Thread Starter cwfaraday

    (@cwfaraday)

    Hi, thanks for addressing this. The pageview code is now gone, but I see that amp-analytics-0.1.js is still included. Actually, all the amp js files are loaded twice:

    error.js:130 amp-lightbox is already registered. The script tag for amp-lightbox is likely included twice in the page.

    error.js:130 amp-accordion is already registered. The script tag for amp-accordion is likely included twice in the page.

    I can’t find anything else adding amp tags to the page…

    UPDATE: js files appear to be added twice only to pages, never to posts.

    Thanks again

    • This reply was modified 7 years, 5 months ago by cwfaraday.
    Plugin Contributor ampforwp

    (@ampforwp)

    Hey @cwfaraday,

    Can you share the URL of where it is happening?
    Are you sure that it is happening on every page including homepage?

    Regards
    Marqas

    Thread Starter cwfaraday

    (@cwfaraday)

    Hi Marqas,

    It happens to the homepage too. Here is the link: https://bit.ly/2rzLmox

    Thanks
    Chris

    Plugin Contributor ampforwp

    (@ampforwp)

    Hey @cwfaraday,

    I have created a ticket about it in our Github, it will be resolved in our future updates.(ref)

    Regards
    Marqas

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Can’t remove Google Analytics’ is closed to new replies.