I've created a new Google Analytics website. I've added the tracking code script block before . I'm sending a custom event to GA and no js error is thrown. However, when I navigate to Reporting > Behavior > Events > Overview, no events are displayed. I haven't created any filters for this GA account that would block the request. Any idea what the problem might be or next steps to debug?
Related
I have installed the google analytics in our e-commerce site using google tag manager. From the product detail page you can click on the colors to see the same product in the different colors. I implemented this using ajax so the page load is not required. I was curious if the google analytics will count as multiple reviews a user clicks on the different colors or do I need to explicitly call something in order for the GA to count as multiple reviews.
First of all, that depends how and what kind of GA you've implemented.
To implement analytics, you have to specify a trigger for the analytics tag. That trigger normally determines if a tag is fired or not.
If you used a page load trigger, then the tag will only be triggered on the real page load. And it won't be triggered on your ajax manipulations.
With only one exception: if you used the GA4 config tag, you had this checkbox there:
The checkbox doesn't only send the pageview on config load, it keeps sending pageviews on every history change. Therefore, if your ajax causes history change and you use the GA4 config tag, then you're getting pageviews.
But this is theory. You can just go and check. Open your network tab, filter the request by collect and see what's sent when. Or alternatively, install the adswerve datalayer debugger and it will log whatever is sent whenever it's sent into the console in a very neat, clean way. This is how it works on this page:
I have configured a GA 4 custom event in GTM via tag but I can't see that event firing anywhere in realtime report or anywhere else except in debug timeline of GA 4 console and in tag assistant of GTM.
As you can see in below screenshot of tag assistant , My custom event for GA4 is "checkout_confirm" which is being configured via checkout_confirm tag which is firing
once checkout is being done and seems working fine with params as intended
In analytics dashboard when I go and try to find that event data (even after 24 hours), It shows nothing but it is showing fired when I go to debug view of GA4 as you can see in second screenshot
Also in screenshot 3 as shown , google analytics debugger extension in browser console is showing that Google analytics is collecting data.
Please guide me , where am I missing , I am stucked from days . Kindly help me.
Events uploaded in Debug Mode are filtered out from standard reports. See "Also, data captured while Debug Mode is running will be filtered out of your other reports so that it does not artificially inflate your metrics (in other words, no more separate GA properties for production and staging)." from Validating Google Analytics 4 with Debug Mode.
You'll need to remove the parameters like _dbg=1 that is labeling this event as debug, and then, this checkout_confirm will show up in realtime and checkout_confirm's event-detail reports.
The only thing that I can think of is you're probably using a browser that blocks trackers (such as Brave or Tor) when you use the website outside the debug mode. Is that the case?
I've reviewed multiple blogs on how to set this up, followed all instructions like enabling Ecommerce in GA, data layer in GTM, etc.
Using GA Debug and Tag Assistant to troubleshoot. The data layer transaction data is on page and recognized by tag assistant.
GA Debug does show an error, but not sure why:
The tag is firing on the correct page after a transaction, and verified this with GTM preview mode.
Doesn't work and keep looking to see what the issue is, but can't figure it out, and hoping someone can help. Thanks!
it looks as your transaction data are pushed to dataLayer after gtm.js event. So if your tag is triggered by 'PaggeView' trigger type then this data will be unavailable. Consider switching to DOM ready trigger or push your transaction data with en event and use custom event trigger.
I can't figure out an issue I'm having on a client account.
I have GA installed via GTM. It appears to be triggering correctly.
But over in GA, it appears that it's registering Sessions but not Pageviews.
As a consequence, I'm seeing 4,402 sessions under Audience > Overview, Acquisition > Overview and I'm seeing sessions under Real-Time. But Behavior > Overview is giving me little data. Behavior > Landing Pages is showing all sessions as "(not set)".
How do I fix and/or troubleshoot this?
updating to include GA debugging info
Here's what I get out of the GA Chrome Debugging extension. Looks good to my eyes...
To wrap this up, I figured it out.
The GTM UA pageview tag wasn't firing. It was never published. I was looking at the preview in google tag manager which is why everything appeared to be working correctly. It never occurred to me it never went live. (oops!)
Sessions triggered whenever a user clicked something because that sort of event was set up in GTM, but none of the page info was being pushed into GA.
And thats how you get sessions with no pageviews in Google Analytics.
I recently set up Tag Manager and Google Analytics.
In Google Analytics
I set up an account
In Tag Manager
I pasted the Tag Manager script just under the body tag of all my pages
I set up a container
I added the "Universal Analytics" tag
I copied my Google Analytics tracking ID "UA-...." to the tag
I added the "All pages" rule to the tag
I published the tag
When I hit one of my web pages, I see
- a call to googletagmanager.com/gtm.js?id=GTM-... (with my tag ID)
- a call to google-analytics.com/analytics.js
- a call to google-analytics.com/collect?...tid=UI-...&tgm=GTM-... (with both my tag and analytics ID)
Now when I go to the Google Analytics dashboard, I see no sessions, not even in the Real-Time session dashboard.
Under Admin > Property > Tracking Info > Tracking Code, it says "Status: Tracking Not Installed" I assume this is ok since I didn't copy the Analytics script to my page, but the Tag Manager script instead.
Is there some delay, or am I setting it up wrong?
I recommend every time you sent up GTM with a analytics tracking tag that you check that it sends data. This can be done by looking at the developer tools with chrome or firefox. Really any web browser.
In your web browser open up developer tools and open network. Find the filter button a and search for "UA-".
If you see something that says pageview, scroll down the headers and you will see your UA Account number and if you used GTM to implement the tag you should see your GTM tag ID.
Reload the page and check again. If you see it means it is sending data to the correct property. If it is not then there is something wrong with your implementation.
If you set everything up correctly and still dont see data check your filters. I always recommend keeping one view unfiltered.