amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

[amp-analytics] Potential Issues with pageVisible events

Open rishnarang opened this issue 5 years ago • 14 comments

Description

Suspected issue with amp analytics tags with GA.

Story URL: https://stories.wnba.com/games-staging/1042000403.html

  1. In the live report, the page visible events are not logged several times, even when we move within pages on this URL.

2021-06-09

  1. Another thing that raises suspicion for an issue is on Behavior \ Events \ Pages.

We have many views for the first page (page 0) - 1140 but just 15 views for Page 1 and 9 views for page 2. If we look at the full picture we see that many users got to the last page.

image

Not sure if there is an issue on the event tracking side or something in the pipeline to GA. Could you help me debug this, please?

Reproduction Steps

Story URL: https://stories.wnba.com/games-staging/1042000403.html

Relevant Logs

No response

Browser(s) Affected

No response

OS(s) Affected

No response

Device(s) Affected

No response

AMP Version Affected

No response

rishnarang avatar Jun 09 '21 19:06 rishnarang

We've been checking the configuration and that the events are sent correctly (they are) so we're out of options to debug this.

Can someone from @ampproject/wg-analytics help us investigate?

gmajoulet avatar Jun 09 '21 21:06 gmajoulet

@rishnarang Are you using GA Universal Analytics?

micajuine-ho avatar Jun 10 '21 14:06 micajuine-ho

@micajuine-ho The partner using this set up uses GA Universal Analytics.

rishnarang avatar Jun 10 '21 15:06 rishnarang

One question I have is why do you have two amp-analytics type=googleanalytics elements on the page? And are either of them showing up? It looks like they are two different UA accounts.

micajuine-ho avatar Jun 11 '21 14:06 micajuine-ho

@micajuine-ho

Hi. The issue posted here happens to us.

We have two separate UA accounts per story as we put our tracking and our clients tracking in the story.  The events don't appear in both accounts. 

Let me know if you want me to add any more information to help identify the issue here.

heydarkatz avatar Jun 26 '21 20:06 heydarkatz

Thanks @heydarkatz

@micajuine-ho does the previous comment help? Appreciate any help on this.

rishnarang avatar Jun 30 '21 16:06 rishnarang

@micajuine-ho could you assign a new owner for this please? This is an important issue for us

gmajoulet avatar Jun 30 '21 16:06 gmajoulet

@heydarkatz Thanks for explaining the context, that helps a lot.

@rishnarang or @heydarkatz do either of you have a minimal reproducible case? i.e. something in Jsbin?

@gmajoulet I'll keep working on it and assign a new owner if it is not solved by the time I depart.

micajuine-ho avatar Jun 30 '21 16:06 micajuine-ho

@micajuine-ho https://stories.wnba.com/games/1022100092.html

heydarkatz avatar Jun 30 '21 21:06 heydarkatz

@zikas Do you you think you could take a look at this?

@gmajoulet and I have confirmed that the Page Visible events are being sent from the client, but it seems like they aren't being picked up by GA. Do you have any idea why this might happen?

micajuine-ho avatar Jun 30 '21 21:06 micajuine-ho

@zikas @gmajoulet @micajuine-ho could you please help us understand the source of the issue and if it is on GA side, how can we trace and fix the issue?

Thank you!

heydarkatz avatar Jul 10 '21 18:07 heydarkatz

We're working with GA internally to try to understand what is happening.

gmajoulet avatar Jul 12 '21 20:07 gmajoulet

@gmajoulet @micajuine-ho Hi folks, did you get any new information from GA?

Thanks!

heydarkatz avatar Aug 19 '21 16:08 heydarkatz

Fixed by using amp-story-auto-analytics and the updated configuration (adding groups: "default" option).

gmajoulet avatar Feb 24 '22 20:02 gmajoulet