- Priority: 0
- Status: Closed
- Theme: Alysum
-
Assigned To:
Fred
- Private: No
- Open Date: 19.11.20, 17:00
- Opened by: Stefano Romano
- Closed by: Anonymous Submitter
- Closed on:
- Reason: Not a bug
Ticket #19888 - Google Analytics 4 issue
Hello,
we released our web site with Alysum theme, but when we try to configure the Google Analytcs in Desktop and AMP site it dosen’t work, i think the actual theme dosen’t support the new Google Analytcs tag start with “G-” can you help me?
Thanks
Comments
Hi, Stefano.
Please fill out all necessary fields in your profile https://support.promokit.eu/index.php?do=myprofile to access to your back office and FTP
Updated!
I have checked out your website source code and see there Google Analytics code https://take.ms/lXKIw
What do you mean by it doesn’t work, there is no registered visits?
Yes it don’t register the visit, because Google Analytcs update their platform with the new code start “G-” and not with “UA-”.
So it don’t register the visit in Desktop site and in AMP site
but there is a code with “G-” prefix and not wit “UA-” https://take.ms/lXKIw
Try to reset the module
Yes is correct, if you open a new property on Google Analytcs you will get the New Analytcs code with “G-” prefix, but your theme dosen’t support the “G-” prefix, it support only the “UA-” prefix.
So you need to update the Theme with the “G-” prefix support
Where did you get that the theme doesn’t support “G-” prefix? see the screenshot https://take.ms/lXKIw there is the right code with G-
I don’t receive anything from the site with this code you posted on screenshot!
The correct code i have to use in web site with the New Google Analytcs is this
Infact if i join in my dashboard on google analytcs i get 0 view but is false
That Google Analytics module is not our. We are not developers of that module.
Try to ask support of that module
Ok for the Google Anaytcs ok i will ask they, but for AMP Module?
as I can see you have disabled Google Tag Manager https://take.ms/Po6kN
Please also check out google’s recommendations regarding the configuration https://support.google.com/tagmanager/answer/9205783?hl=en
I tryed to enable only the Google Tag Manager but dosen’t work too.
I go off topic now: i see i have all old promokit plugin, if i replace the plugin with your new ZIP Theme File, i lost all configuration?
If i Enalbe only google tag manager on AMP in my console i get this error
Attachments:
fa37f96e0bfe09bba281b77f206da...(29.5 KiB)1. if i replace the plugin with your new ZIP Theme File, i lost all configuration? - you can lost only custom CSS/JS code. In any case make a backup before the update.
2. Seems the ID is not registered in your google account. That error is generated by google scripts. Please check out carefully the link I gave you before https://support.google.com/tagmanager/answer/9205783?hl=en
Ok, i understand but can you explain me how i can add Google Analytcs on my website in AMP? thanks
I need to clarify, do you need to use Google Analytics or Google Tag Manager?
Yes, i need only Google Analytics
Ok, I’ll review the code once again…
Ok, let me know if you need some, i’m still online here
I just modified the file /www.laviniamode.com/themes/alysum/templates/mobile/_partials/footer-bottom.tpl according to the Google documentation https://developers.google.com/analytics/devguides/collection/amp-analytics
But nothing is changed in the AMP page. Do you use some additional cache?
No, we don’t have other cache
Ok, now I see the page was updated and new code is present in the source code. Please check out your google analytics now
No, it dosen’t work :’(
Did you configured it like described here? https://developers.google.com/analytics/devguides/collection/amp-analytics
I set only the Google Analytrcs ID on AMP Theme Settings, i don’t edit any file in ftp
I see the following error there
What means you didn’t add your domain to your google settings
I have the same. I have in the code :
<amp-analytics type=”gtag” data-credentials=”include”>
</amp-analytics>
But no data in Google Analytics console. and the message : “log.js:258 [AmpAnalytics <unknown id>] No triggers were found in the config. No analytics data will be sent”
Do you use correct ID?
From the Analytics documentation – “AMP traffic uses different client IDs from those for web traffic by default” Read in details here https://developers.google.com/analytics/devguides/collection/amp-analytics/
And video tutorial https://www.youtube.com/watch?v=QXu-z9mz0z8