I am facing really weird problem related to event tracking. We have implemented google analytics standard code and event tracking for one website and that site is uploaded on online version of test staging sever (not live yet for public).
Google Analytics shows data for pageviews but not showing for event tracking. I looked at code and seems that its working fine.
Anybody has clue what is happening ? Please advise me
I'd check to make sure the __utm.gif tracking pixel request for the event is being made. Things to check:
Javascript errors when the event is triggered.
Verify __utm.gif via the network tab in Firebug or Chrome Dev tools, or Fiddler, or ga_debug.js
If your'e following a link right after the event is triggered, you may have to add a delay to allow time for the image request to be processed.
A code snippet showing your _trackEvent code might be helpful.
Looking at your comments, it is difficult for us to review and answer. Is it possible for your ti share the URL in which you have incorporated the event tracking.
However, possible reasons could be:
* a silly error in JS.
* proper closer of tags.
* need to set up goals as well (not mandatory though).
Related
I'm trying to create a Tag in GTM that will show as an event in GA when triggered. In addition, I'm trying to see the debug mode flow on GA that is coming from GTM in preview mode.
Debug mode not working
Earlier when setting up the account, I noticed the Debug Mode in GA isn't receiving any data from GTM. I tried implementing the debug_mode = true (Fields to set) in the GA4 Configuration Tag, as well as using the Google Debugger extension. Both didn't work.
GA4 Events not working
Although GA is reporting regular activity (sessions, engagement, etc.) it fails to gather the new GA4 event I set up in GTM. I followed a step-by-step tutorial by MeasureSchool on YT (https://www.youtube.com/watch?v=IkMRRcwEfi8) to accomplish this. Didn't work either.
Preview mode not showing GA Container activity
When entering "preview" mode, while the GTM container is reporting successful Tag fires, the GA is displaying a "No hits were sent by this container" message.
At this point, I am convinced there is a broken connection between GTM and GA, since quite remarkably, the two work perfectly on their own.
However, before I restart the entire process and start from scratch, I was wondering whether anyone has a clue to how this can be solved?
Many thanks!
You haven't completed debugging properly.
Use the network tab in chrome's devtools for debugging. Or use adswerve's datalayer debugger to get the same info in the console. Make sure you see events flowing to google's "collect" endpoint. Disable your adblockers. Make sure the tid field in the event payload is the same as your GA's property id if you still attempt to use GA UA, or it has to match your measurement id if you're using GA4.
I started to notice that my Google Ads clicks wasnt 100% counting by google analytics (For exemple, during a certain period I had 300 clicks and only 100 sessions were counted as Paid Search on analytics). So I contacted Google Ads Support, they investigated and came to me with this:
Actually, your site is losing the attribution of Google Ads because of an automatic redirection of the structure in which it was developed.
When we have Google Ads linked with Google Analytics, they are talked through a parameter called GCLID. To verify this loss, follow the path I made (in several products, here is an example):
1- I accessed the link https://mywebsite.com/products/running-shoes?variant=15320930779194
2- After full site loading, I added the & gclid = Tester123 parameter to the URL (in the browser, so the final URL was https://mywebsite.com/products/running-shoes?variant=15320930779194&gclid=Tester123) and hit Enter
3- To understand if there is a redirect, the normal behavior would be for the URL to remain the same (with & gclid = Tester123 at the end), but in this case, the parameter some (and hence the assignment)
So, the campaign actually appeared (not set) in Analytics, and could be assigned to any of the other channels (Direct, Organic, ...) For this to be resolved, the site structure must stop causing this automatic redirection in the final URL of each product. With this, the results will be effectively assigned to Google Ads.
They also said that if even if I want to use manual tracking (UTMs) I would still have that problem, since the redirections would keep spoiling it.
As I use Shopify as my website platform, I checked with them and I have no redirections that are causing this problem, at least not created by me nor that their support know.
So I am lost over all this. I dont know where to start solving this problem. Google doesnt tell me what kind of redirections may cause this, I dont use any kind of redirections, and Shopify cant tell me if their code causes this problem (what I dont believe, because other shopify websites would also been suffering from this).
So can anyone give me any direction about this? What redirections may be causing this lost of data?
Thanks for your time!
One thing to note, Google Ads might have a different way of counting, there is the possibility of multiple clicks per session.
That said, you can try Google Tag Assistant, start your recording, click on one of your ads, follow that through and see the parameters being passed.
Unfortunately, it is hard to debug with limited information. The more details you can provide the better.
Check where your GA code is placed in the page code. If GA script is at the bottom of page or there are some heavy scripts above GA tracker, losses of bounced sessions can be large. I.e. user enters the page and immediately closes it. GA script doesn't have time to download.
Why user closes the page immediately?
Сlick by mistake
Slow site
And check that all your landing pages are OK and have 200 server response.
I have to debug the following message which I get in google analytics:
The data view XY was configured for e-commerce, but no data is transmitted.
This is the site.
As you can see in the source code, the tag manager is implemented properly, and a network analysis shows that data is transmitted, I get status code 200.
I used the extension "Google Tag Assistant", it showed that everything works fine (go to the site and click on something, then you will get this:)
As you can see it works. So why do I get this message?
Could you show us a little bit more what you have setup in GTM? As far as i can see i assume you should be getting pageviews since the beacons are correct:
But im also seeing you have some kind of event that wont work cause your Action and Category are undefined and Analytics says this fields are mandatory.
If you are not even seeing the pageviews you may have your UA-45904794-4 wrong (Or not well configured on GTM) or a filter on Google Analytics that shouldnt be there.
If you have any further questions just ask and i ll edit this and add more information.
Hope it helps!
You can check that you don't have ecommerce tracking in the container:
Since you do not, you should disable it in analytics on the property:
This warning means that according to the Analytics property settings you intend to track ecommerce data, but you are not sending any.
Or you can finish setting up ecommerce and publish the resulting container. For example, by following that section in the quick start guide:
A site I work with recently saw a doubling of it's direct traffic as recorded in Google Analytics. There doesn't seem to be a obvious external reason for the increase (like some promotion or something) so I'm looking into a possible technical reason.
When loading the homepage and monitoring Real Time Traffic Sources, I see two hits in rapid succession each time I reload the page.
However I'm using the GA debugger extension in Chrome and it's only showing the two expected function calls: ga('create') and ga('send', 'pageview').
The site has other event tracking set up but each event is wrapped in an event listener in JS so they aren't firing automatically. And if they were they should show up in the GA debugger anyway
So I'm at a loss. I can't think of why this is happening, let alone just for direct traffic as opposed to other sources. Anyone have any ideas?
Thanks!
I had set up my Google Tag to track clicks on spans with certain IDs, the events are firing according to WASP extension, but they are not showing up in my Google Analytics account.
Here is my trigger:
My Tag:
WASP in action:
GA displays pageview only:
Code is installed properly
Sorry if this seems pretty obvious, but in Real Time you should be on the Events tab, and it seems you are looking in the Content tab. Events are never displayed there.
While the configuration looks to be correct, remember that events won't show up in your standard reports until the data is processed, which takes about 24 hours. As long as the hit is showing up in your Real-Time reports, then you shouldn't have any issues.
Can you please post full HTTP request? For instance from Charles Web Debugging Proxy of Live HTTP Headers extension or anything simillar.
What you post seems to be correct as #nyuen says!