• Resolved jorgitobg

    (@jorgitobg)


    Hi,

    This last sunday I switch AMP plugin to yours and im so happy, but after changing AMP pages urls from /amp/ to ?amp and all other changes on the template google analytics are not gathering data right.

    Im reading the realtime data from google analytics, ezoic and my own hosting presslabs…. my hosting and ezoic shows almost 40% more pageviews than google analytics since this past sunday. Before this day (plugin switch) the analytics were working fine.

    I tried to debug those last days try everything I thouth can help:

    1) Tried diferent googleanalytics configuration (universal, gtag, etc), also tried with google tag manager configuration
    2) Tried to change all triggers names to avoid some triggers problem.
    3) Tried monsterinsights or other plugins
    4) Clean / purge caches TONS of times, hosting and ezoic.
    5) Chrome tag manager extension for checking if triggers are fired… seems to work but I recive this warning “Non-standard implementation”, did some digging doesnt found how to fix.

    I see ?amp pageviews on google analytics but I feel GA is not getting all pageviews because of the different pageviews data on hosting and ezoic. I tried to

    Maybe this is an AMP cache problem because of the /amp/ to ?amp urls? I tried to update some pages following this guide, but I dont know if I have to update ALL 12k pages:
    https://amp.dev/documentation/examples/guides/using_the_google_amp_cache/

    Any idea would be VERY apreciated.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 6 replies - 16 through 21 (of 21 total)
  • Thread Starter jorgitobg

    (@jorgitobg)

    I tried to insert on AMP plugin configuration, same result:

    <amp-analytics id=”fd106312c305″ type=”googleanalytics” data-block-on-consent=”” class=”i-amphtml-layout-fixed i-amphtml-layout-size-defined” style=”width:1px;height:1px;” i-amphtml-layout=”fixed”><script type=”application/json”>{“vars”:{“account”:”UA-861219-1″},”triggers”:{“trackpageviewGHB11235”:{“on”:”visible”,”request”:”pageview”},”pageTimerGHB11235″:{“on”:”timer”,”timerSpec”:{“interval”:15,”maxTimerLength”:16},”request”:”event”,”vars”:{“eventId”:”timer”,”eventCategory”:”timer”,”eventAction”:”read”}},”trackanchorclicksGHB11235″:{“on”:”click”,”selector”:”a”,”request”:”event”,”vars”:{“eventId”:”42″,”eventLabel”:”clickedonalink”}}}}</script></amp-analytics>

    Plugin Author Weston Ruter

    (@westonruter)

    I suggest searching your theme/plugins for data-block-on-consent to see which is adding it.

    With that attribute present, analytics are blocked until the user clicks the consent button, as I understand. That may be why you aren’t seeing any traffic. People aren’t giving consent to be tracked.

    Thread Starter jorgitobg

    (@jorgitobg)

    I though Ive found guilty plugin: “WP GDPR Cookie Notice”…

    *********************************
    The following checkboxes allow you to block certain cookie-based features until the visitor has given their consent to the cookie notice.
    – Block AMP third-party integrations such as analytics, ads and embedded content?
    – Block users from logging in to the backend?
    – Block WordPress from identifying visitors when they submit a comment?
    *********************************

    This little plugin was getting me crazy… I installed yesterday or before, but now I have to RE-CHECK again all analytics changes I made this last 24h hours!!!!

    Many many thanks for your help again!

    Regards

    Thread Starter jorgitobg

    (@jorgitobg)

    Maybe you can recommend me other plugin to have the legal popup without all this issues?

    Plugin Author Weston Ruter

    (@westonruter)

    Sorry, that WP GDPR Cookie Notice plugin is the only one I’d recommend! If there’s a bug I think you can reach out to @flixos90 on the support forum: https://www.ads-software.com/support/plugin/wp-gdpr-cookie-notice/

    Thread Starter jorgitobg

    (@jorgitobg)

    I fount it on amp-wp.org page ??

    But I think there is no bug, only missconfiguration by me.

    Lets hope the google analytics backs to work normal someday after migration from /amp/ to ?amp!!!!!

    Many many thanks again for your help!

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Google analytics issue after switching to AMP plugin’ is closed to new replies.