- This topic has 9 replies, 2 voices, and was last updated 6 months, 1 week ago by David.
February 17, 2020 at 9:10 am #1168248Anonymous
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 Support
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:
The 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 #1169344Anonymous
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 Support
That 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 #1169924Anonymous
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 Support
See this document:
i am not seeing the second piece of code on your site? ie the second script that should be added to the
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 #1292376Giacomo
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 Support
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 #2291520Alyson
Same problem here, on 2 sites. I’ve changed dozens of themes and never seen this before using GPJuly 24, 2022 at 2:21 am #2291830
- You must be logged in to reply to this topic.