Google Analytics Page Tracking stopped working - google-analytics

my main problem is, that since the 23rd of July the Google Analytics Page Tracking is not working anymore, even though I did not change anything.
I have multiple Websites, which have an integrated questionnaire. If people answer a question, the URL does not change, but somehow (I did not write the questionnaire by myself, therefore I do not know how it is exactly working) Analytics tracked their behaviour as Page-View(with specific URLs e.g. www.url.com/question-5).
I think this is the line of code, which tells Google Analytics, that it shall track the Page-View.
window._mfq.push(["newPageView", "/".concat(M || t)]),
"function" == typeof window.ga && (window.ga("gtm1.set", "dimension1", e),
window.ga("gtm1.set", "page", "/".concat(M || t)),
window.ga("gtm1.send", "pageview")),
Google Analytics is integrated with Google Tag Manager and the Google Analytics Tag is triggered by the build in "Page-view" Trigger.
How is it possible, that it was working with no problems till last week and suddenly it is not anymore (on roughly 10 different Websites). It seems to me, that Google Analytics (or Tag Manager) did an update, but I cannot find any information regarding this.
Do you know, if something has changed in the last week?
Addition:
The Google Analytics Debugger tells me the following:
Executing Google Analytics commands.
>Running command: ga("gtm1.set", "dimension1", 200624)
Executing Google Analytics commands.
>Running command: ga("gtm1.set", "page", "/steps-route-1-1-question")
Executing Google Analytics commands.
>Running command: ga("gtm1.send", "pageview")

Ok, found the problem.
The variable gtm1 is not initialized. The page view is therefore no longer sent to GTM. I don't know exactly why that worked before. Possibly. had the gtm variable, which records the actual page view, the name gtm1 and due to some change on the part of Google this is no longer the case.

Yup this was a Google change. Events are now send using gtag function, see https://developers.google.com/analytics/devguides/collection/gtagjs/events

Related

Transaction HTTPS Request - Server Side Tagging Consolidation Stream

I have a trouble with Server Side Tagging Consolidation Stream. I am trying to use GA4 Stream to dispatch Universal Analytics data to Google Analytics. So far I managed to send data via 2 different streams - one for GA4 and one for UA and they are working fine. I have to mention also that in both situation I am using GTM4WP plugin by Thomas Geiger. But when I am trying to use GA4 stream to send data also to Universal Analytics it doesn't work as I expected. In Universal Analytics I can see purchase event in "Behaviour > Event" or "Real-time > Events" Tabs but I don't see even once transaction in "Conversion > E-commerce - Overview". I checked outgoing request and it looks like bellow (I skip some parameters) (:
tr=89
t=event
ea=purchase
ec=ecommerce
I have and idea that it doesn't work because t parameter is equal do event, not to transaction but I checked working request (without consolidation) and it also has t=event:
tr=0
ec=Enhanced%20Ecommerce
ea=gtm4wp.orderCompletedEEC
el=%2Fcheckout%2Forder-received%2F213251%2F
pa=purchase
t=event
Wham am I doing wrong here?

Already exists (HTTP 409) error Big Query/Google Analytics

We have recently set up our import from Google Analytics to Google Big Query, but at the same time as there is a successful Update Table, there are two errors: 'Failed: Create Dataset' and 'Failed:Insert Dataset'
The errors message is below:
Already exists (HTTP 409): Already Exists
Does anyone know why I'm getting this error? There doesn't seem to be an issue with the data so I'm not sure what is causing it.
This is a known "issue" within BigQuery Analytics export. As far as I know it is a side effect of how the export is currently configured.
The Google Analytics team is working towards fixing this issue, but you should be able to ignore it if the exports are otherwise successful.
Meaning, if you are not experiencing any other issues you shouldn't be concerned about those two error messages.

Custom event tracking doesn't send event

I'm trying to get custom event tracking to work on my website.
My problem is: The custom GA tracking is not being send. I cannot see it in GA or in my network tab. Also there is no error in the developer console.
How can I debug / fix the problem?
What I have tried to solve the problem:
We use GTM to implement GA. GA works fine.
I have created a function to get triggered when a event occurs. I have tested the function - it fires properly when the event is being triggered.
The the ga 'send' command uses functions to dynamically generate the right tracking. I have tested the functions individually inside a console.log >> they work fine.
I have tested that the 'ga' command is available. It is not being rejected by the console with an error message like 'unknown'. So the command is available. It just doesn't work properly >> no error message at all.
Technical Background:
We use WordPress 5.0.2 to run our website.
I have tested it locally (WAMP) and on our staging environment.
The function:
function stepTracking() {
ga('send', 'event', eventLabel(), eventAction, eventCategory());
}
My goal is to A. Understand why the command is not working and B. Send the tracking properly.
Thank you guys,
Max
It looks like you are using a GA event as opposed to a GTM event. Try the dataLayer.push mechanism.

Firebase create new audience not responding

Hello I am creating a new Audience in Firebase console for a game (already released on store with roughly 17k DAU). However, the tool keep becoming not responding. I checked it seems to be a problem with Firebase's JS. More details below:
Error in Chrome developer debug:
[Violation] Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
Screenshot: Firebase Javascript error
I tried changing the date range to 7 days, yesterday, today. Same error.
Is there a way to workaround this issue? Thank you

IcCube - How to retrieve full error messages for failed Google Analytics Api Calls

When you hit the "Refresh Datatable" Button for a misconfigured datatable inside the Google Analytics Plugin the command fails with the message:
Failed to load columns for table 'My Table' due to following error: 'Google Analytics Error'
This is not very descriptive.
So, how to get the fully qualified error-message which comes from the Google Analytics API?
Is there a way inside the icCube to log the error message which comes from the Google-API?
I tried to set all log-levels to DEBUG, but it did not help.
Alternatively, does Google log these errors, so that I can view them anywhere at the developer console?
It's an error on the current icCube version, will be fixed in 6.0 RC2.
Issue 254
When you refresh the Datatable, the API-Call analytics.data.ga.get is triggered.
So you can simulate this call inside the Google APIs Explorer.
Here you just need to put in the metrics and dimensions, like you did in the IcCube IDE.
How to get the profile Id is explained here.
After hitting the Execute-Button you can now see the full error-message.
A common error is to ask for more dimensions or metrics than allowed (max. 10 metric, 7 dimensions).
Of course it would be much more convenient, if the icCube Plugin would read the error-message and print it inside the IDE or the log...

Resources