- This topic has 9 replies, 2 voices, and was last updated 1 year, 8 months ago by David.
-
AuthorPosts
-
February 17, 2020 at 9:10 am #1168248Anonymous
Hi there,
Google Analytics has been embedded following the instructions at https://docs.generatepress.com/article/hooks-element-overview/ and https://generatepress.com/forums/topic/how-to-add-google-analytics-code-to-generate-press/.
The site is using the “Article” library. Although a site such as http://www.gachecker.com/ validates that the code is present, the Google Analytics dashboard displays that no data is being sent. It has been more than 48 hours (1 week).
It’s the first library that appears to have the problem.
What are options are there to resolve the issue?
February 17, 2020 at 12:08 pm #1168439LeoStaffCustomer SupportHi there,
There isn’t anything that the theme can do to stop the code from working if it’s the code are added according to David’s instruction here:
https://generatepress.com/forums/topic/how-to-add-google-analytics-code-to-generate-press/#post-1123300The site http://www.gachecker.com/ validates that as well.
Can you check with Google’s support and see if they can point you in the right direction?
February 18, 2020 at 8:47 am #1169344AnonymousHi Leo,
The feedback is that the script isn’t being triggered and oddly, it’s the first theme/library to do so.
February 18, 2020 at 9:42 am #1169427LeoStaffCustomer SupportThat was Google’s response?
The theme itself really can’t do anything to trigger or not trigger that code – it just inserts the code as it is for you.
Any chance you can check with them to see what would be the reasons why this would happen?
We haven’t had any other reports on this.
Thanks 🙂
February 18, 2020 at 10:57 pm #1169924AnonymousHi Leo,
It’s baffling since as you said that it inserts the code. Since it’s not commercial account, it’s limited to the general FAQ as to the reasons it may not work.
Would you be able replicate the deployment of the theme and Google Analytics at your end to test?
February 19, 2020 at 3:39 am #1170108DavidStaffCustomer SupportHi there,
See this document:
https://docs.generatepress.com/article/implement-google-tag-manager/
i am not seeing the second piece of code on your site? ie the second script that should be added to the
wp_body_open
hook.Without this google tag manager will not work. On the gachecker site you check the Tag Manager view you’ll see it is not firing.
May 19, 2020 at 10:03 am #1292376GiacomoHi David,
I am experiencing the same problem. I am not using GTM, but the usual GA. What is really weird is that the code seems to be working if I use Edge. No luck with Chrome or Firefox, I also tried incognito mode.
I setup Google Analytics on tens of websites in the past, but for some reason it isn’t working this time.
I checked the page source code and, indeed, the entire code is there (between the head tags).
I am using the “Target” theme, is there any chance some plugin is interfering with the correct functioning?
May 19, 2020 at 2:00 pm #1292674DavidStaffCustomer SupportHi there,
if you can see the GA script in the <head> of the site then there should be no reason why it does not work.
Do you want to raise a new topic where you can share a link privately and we’ll take a look.
July 23, 2022 at 9:34 am #2291520AlysonSame problem here, on 2 sites. I’ve changed dozens of themes and never seen this before using GP
July 24, 2022 at 2:21 am #2291830DavidStaffCustomer SupportHi Alyson,
i see you have another topic open related to this, we will respond there.
-
AuthorPosts
- You must be logged in to reply to this topic.