Site logo

Archived topic

Google Analytics no data stream issue

9 replies · Started by Former User on February 17, 2020

Viewing posts 1–10 of 10

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?

Hi Leo,

The feedback is that the script isn't being triggered and oddly, it's the first theme/library to do so.

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 :)

Hi 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?

Hi 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.

Hi 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?

Hi 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.

Same problem here, on 2 sites. I've changed dozens of themes and never seen this before using GP

Hi Alyson,

i see you have another topic open related to this, we will respond there.

This archived topic is closed to new replies.