amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

<amp-analytics> is not providing client id in the next page using <amp-next-page> on google amp viewer

Open deprantik opened this issue 5 years ago • 3 comments

Description

Hi anyone, I have an issue with clientId() method in amp-analytics. So, whenever I am opening our amp page in google amp viewer (i.e. from the google carousel / top stories), the first analytics call is providing clientId. But when we go to the next page in infinite scroll, it’s not providing the clientId anymore, leading to failure of analytics call. This issue is not happening when we open the amp page on our website.

For further info please dm on Slack.

Reproduction Steps

  • Search for yourstory in mobile / mobile-size google.
  • Select any article from the carousel
  • 1st page analytics call is a success.
  • Now scroll to the next page
  • Now the next page amp-analytics call fails due to lack of client id.

Relevant Logs

No response

Browser(s) Affected

No response

OS(s) Affected

No response

Device(s) Affected

No response

AMP Version Affected

No response

deprantik avatar Aug 02 '21 12:08 deprantik

Hey @kristoferbaxter

Any news on this issue? Our pageviews are getting affected. It'll be awesome if this issue can be expedited. Or if any temporary solution can be provided for now.

deprantik avatar Sep 09 '21 07:09 deprantik

@deprantik thanks for reaching out. Will investigate soon & update when I have something.

dmanek avatar Sep 09 '21 17:09 dmanek

@alanorozco When should we expect this fix to reflect on production or is there any change needed from our side?

deprantik avatar Sep 23 '21 05:09 deprantik