• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 02.01.21, 13:27
  • Opened by: Jole Schiavo
  • Closed by: Fred
  • Closed on: 03.02.21, 10:51
  • Reason: Closed
  • Comment: Glad to help!

Ticket #20354 - Google Analytics 4 on AMP

Hi,
I changed the Google Analytics ID in AMP setting.
I cleaned prestashop cache, but if it displays the page source of the AMP version, there is always the old ID

I only view desktop statistics, users connected in mobile are not displayed in Google analytics

See file attached,
the new ID Google Analyticis is G-XXXXXX ( new version 4 )

Best regards

Attachments:

Script_Google.jpg (84.9 KiB)

Comments

Fred 02 Jan 2021, 16:05

Hi, Jole Schiavo.
Please check out how to use Google Analytics for AMP here https://developers.google.com/analytics/devguides/collection/amp-analytics

We have added all necessary code to AMP template now you need to configure it in your google account