• Resolved Serensites

    (@serensites)


    I updated to version 1.0.2 last week and we have had a dramatic drop in our AMP stats ( over 50% of sessions ). I activated the new “Paired” mode could this be the cause? I have reactivated the classic version as the stats are continuing to drop.
    Could activating this mode be the cause for this issue and will restoring the classic mode resolve my issues? I have 97 errors, I’m not sure how to correct them? Here is a classic example https://www.vousnousils.fr/2019/04/03/rennes-va-se-doter-de-cours-de-recreation-non-genrees-621974?amp
    Thank you for any help as this is very worrying for us .

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    Thread Starter Serensites

    (@serensites)

    Sorry for not being very clear. The errors are just AMP errors in the plugin log – if I validate the url with the AMP validator they say everything is ok – that is why I didn’t really worry about them when I changed the mode to “Paired” after the update but since doing so the AMP stats have dropped dramatically. If I try and analyse the GA stats I can see that the referral segment has taken the biggest blow so I would guess the referral is from the ampproject.org? Are the url’s listed on the error log blocked? Is this why the stats have perhaps dropped? Should I manually approuve them and is it better to keep the classic mode activated?

    Thank yo so much for your help

    Plugin Author Weston Ruter

    (@westonruter)

    @serensites Humm. Since switching back to Classic is not changing the expected traffic, can you switch back to Paired mode to compare? I’ve captured the page source of above classic mode URL, but I want to get the paired mode output to compare.

    As for specifics regarding Google Analytics, I’m not an authority on that topic. You should get better answers from https://support.google.com/analytics/

    The only thing that does come to mind is with regard to Google Analytics and AMP is the Google AMP Client ID: https://support.google.com/analytics/answer/7486764?hl=en

    We have an issue open to support this option in the plugin: https://github.com/ampproject/amp-wp/issues/775

    And there is a separate AMP extension plugin to add the required meta tag: https://gist.github.com/westonruter/a11b2c9321374c993286c01bab21bbc2

    Thread Starter Serensites

    (@serensites)

    Hi,

    Actually since reactivating the classic mode and the stats seem to be back up.

    I am using a plugin to add the GA client ID and it has always worked.
    https://fr.www.ads-software.com/plugins/amp-analytics/

    Would the paired mode affect the tracking or even mean that Google are not indexing the pages in this mode?

    For information, I updated on Friday the 29th and the massive drop occurred between the 1st and 3rd of April.On the 3rd the stats were basically down to 0. On the 4th ( yesterday) I reactivated the classic mode and the stats started climbing again and today they seemed to be back to normal.
    Should I be approving the errors or something? I did receive more error notifications via the Google Search Console. We have not changed any of our HTML code or the website’s theme.
    This is perhaps a coincidence with something else but I would like to fully rule out that it’s not the plugin.
    Thanks

    Plugin Author Weston Ruter

    (@westonruter)

    @serensites It could be that this amp-analytics plugin isn’t aware of the new native/paired mode. So it could be that there was no traffic loss, but just that the analytics was not getting added to the page properly.

    If you can show the paired mode version of the site I can confirm.

    Nevertheless, by looking at the plugin I can see that this indeed is the case.

    You actually do not need this amp-analytics plugin at all. The AMP plugin has direct support for adding analytics. I’m not sure why that plugin even exists (indeed, it hasn’t been updated in three years!). Just go into the AMP settings and you can find an Analytics admin screen there. You then can paste the Google Analytics code there and it will handle the rest.

    Then install the above plugin to also add Google AMP Client ID.

    Thread Starter Serensites

    (@serensites)

    Hi,
    Thank you that really makes sense.

    I’m not too sure how to integrate the GA tracking code.
    I only have this from GA ( but it’s not json)

    <!– Global site tag (gtag.js) – Google Analytics –>
    <script async src=”https://www.googletagmanager.com/gtag/js?id=UA-XXXXX-Y”></script&gt;
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag(‘js’, new Date());
    gtag(‘config’, ‘UA-XXXXX-Y’);
    </script>

    When I am in the analytics settings in the AMP plugin if I type “googleanalytics” as a type entry , I cannot add the ID in the other field – it stays grey.
    Should I just paste this:
    {
    “vars”: {
    “account”: “UA-XXXXX-Y”
    },
    “triggers”: {
    “trackPageview”: {
    “on”: “visible”,
    “request”: “pageview”
    }
    }
    }
    And leave the ID empty?

    Plugin Author Weston Ruter

    (@westonruter)

    Correct. The ID is not something you need to provide.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Massive Stats Drop after Updating to 1.0.2’ is closed to new replies.