We've implemented Event Tracking code that runs for a while now (more than a week), but we don't see any events in the Events reporting page.
I've tested with Google Analytics Debugger chrome extension, which recognizes the event and claims it's error-less. This means the event is sent to google.
Additional info that might help - we're using virtual page when calling to _trackPageview (and this is the only call to _trackPageview we have).
Initialization example: _gaq.push(['_trackPageview', '/v/user/store/catalog'])
An example of an event: _gaq.push(['_trackEvent','LinkToProduct','CatalogProductbox','3',0,false])
What can I do to debug this further or solve it?
Double check that the correct Account ID is on the _trackEvent call via the Google Analytics Debugger. The Account ID is passed via the utmac parameter.
Are there any filters on the Analytics Profile that might be keeping event data from being recorded?
Are you seeing pageviews for your virtual page /v/user/store/catalog?
Related
does anyone know if it is possible to use the parameters of an event sent with the hits of the event itself from Google Analytics with the Google Tag Manager?
page_view hit details
As you can see from this screenshot, the page_view event includes many parameters, such as Page Title, Session Engagement, and many others that are not natively tracked by GTM.
For example, if I wanted to get the value of the "seg" parameter via GTM, how can I do it?
Thank you
I tried using a custom JavaScript but I don't know how to use it
You cannot. GTM doesn't give you the ability to monitor network requests. Even though you may be sending the request via GTM to GA, it's not going to show you the request details or the response.
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 am trying to use the Google Analytics Measurement Protocol to record some events happening on my server-side code. I am using the REST API as suggested here but I don't see any events on the Google Analytics dashboard.
When I try to add the event via the Google Analytics Hit Builder, then I am able to see that event in the dashboard.
I don't think any authentication is required while using the REST API and only a correct tracking ID is required which is present. I have confirmed that the POST request is not failing.
I am looking at the Realtime > Events to check whether the events are pushed or not. Is there a place where I can check the historical data to see if the events are present there.
Thanks!
have you had this problem with GA?
The Landing Pages report has a (not set) entry.
A pageview hit must precede event hits in order for the event hits to include the page that they fire from. When event hits aren't preceded by a pageview, Google Analytics doesn't have the page for the event hits, so their page is (not set).
Verify that tracking code for property SITE sends a pageview hit before sending any events.
Google Tag Assistant Recordings can help you verify that your hits are sent in the correct order.
Any suggestions would be great please. Thanks
Some of my events are getting fired from frontend for both google analytics and facebook pixel and they are getting captured properly through GTM.
but now i have a functionality which is getting done from cron and is served from backend. I need to capture a event in both google analytics and facebook pixel when this is getting captured.
We need to fire the https (rest based) calls for capturing this.
Kindly help on this how this can be achieved.
Update: While this was correct at the time of writing, Google has since introduced server-side tagging via GTM, which conceivably can be used for server-to-server communication.
--
GTM has no serverside API to trigger tracking calls (the GTM API is for managing tags that will be wrapped into a Javascript function. There is no tracking backend to do calls against).
You need to send your calls directly to GA via the measurement protocol or respectively to Facebook via offline conversions.
Yes you can.
create an event listener on button click to connect to the API to collect the data
then with an event push the data you want to a Datalayer
and then use it as you wish.