Google Analytics 4 Event Tracking Hilfestellung | Event Tracking Assistance

Google Analytics 4 Event Tracking Hilfestellung | Event Tracking Assistance

English version

 

Sie möchten in Ihrem GA4 Account sehen, wenn ein Popup angezeigt, geschlossen oder eine Sitzung als potentielle Rückgewinnung markiert wurde?

Hier finden Sie eine Hilfestellung unsererseits zu diesem Thema. Google selbst liefert die passenden Anleitungen.

Informationen zu Benutzerdefinierten Ereignissen in GA4:

https://support.google.com/analytics/answer/12229021?sjid=8236969818579454298-EU

 

Implementierung benutzerdef. Ereignisse via gtag.js:

https://developers.google.com/analytics/devguides/collection/ga4/events?client_type=gtag&hl=de

 

Implementierung benutzerdef. Ereignisse via Tag Manager:

https://developers.google.com/analytics/devguides/collection/ga4/events?client_type=gtm&hl=de

 

Ein Event via uptain Activation Popup auslösen und an GA4 senden:

Gehen Sie in die Konfiguration Ihrer Activation Popups und klappen das gewünschte Popup auf. Scrollen Sie in den unteren Bereich “Tracking-Codes”. Dort haben Sie im Drop-Down die Auswahl zwischen den verfügbaren Zeitpunkten zu denen das hinterlegte Event abgeschickt werden soll.

Die Konfiguration innerhalb eines Popups könnte so aussehen:

image-20240319-161446.png

gtag('event','uptain-em-popup-closed',{

'event_category':'Uptain Email Popup',

'event_label':'Uptain Email Popup Closed'

});

return true;

 

Achten Sie darauf, dass die verwendeten Bezeichnungen mit denen in Ihrem GA4 Account übereinstimmen, da die Events ansonsten nicht erkannt werden können.

 

How to test what type of value is returned from custom tracking code function

You can take the minified function code from configuration returned with the uptain.start event. For each popup there will be an onCloseCallback function passed if it’s present in the configuration. You can copy the function and wrap it with IIFE function like this (function (){})() and paste this function in the dev tools console on your website. Here is the example:

(function() { return gtag("event", "uptain-em-popup-closed", { vent_category: "Uptain Email Popup", event_label: "Uptain Email Popup Closed" }), !0 })()

The function response you’ll see right under the function invocation as in the screenshot (in the third screenshot you can see a faulty function that is returning undefined). If true - all okay, if false or undefined the function is not right and the popup might have limited or faulty functionality.

 

GA4-1.png
GA4-2.png
GA4-3.png

 

Bitte beachten Sie, dass wir keine Gewähr für die Funktionalität bieten können und wir hier lediglich eine Hilfestellung anbieten.

 

 

 

Google Analytics 4 Event Tracking Assistance

 

Would you like to see in your GA4 account when a pop-up has been displayed, closed or when a session has been marked as a potential recovery?

Here you will find some help from us on this topic. Google itself provides the appropriate instructions.

Information on user-defined events in GA4:

https://support.google.com/analytics/answer/12229021?sjid=8236969818579454298-EU

 

Implementation of user-defined events via gtag.js:

https://developers.google.com/analytics/devguides/collection/ga4/events?client_type=gtag&hl=de

 

Implementation of user-defined events via Tag Manager:

https://developers.google.com/analytics/devguides/collection/ga4/events?client_type=gtm&hl=de

 

Trigger an event via uptain activation popup and send it to GA4:

Go to the configuration of your activation popups and open the desired popup. Scroll down to the "Tracking codes" section. There, you have a dropdown menu with options for when to send the configured event.

The configuration within a popup might look like this:

image-20240319-161446.png

gtag('event','uptain-em-popup-closed',{

'event_category':'Uptain Email Popup',

'event_label':'Uptain Email Popup Closed'

});

return true;

 

Make sure that the labels used match those in your GA4 account, otherwise the events cannot be recognized.

 

How to test what type of value is returned from custom tracking code function

You can take the minified function code from configuration returned with the uptain.start event. For each popup there will be an onCloseCallback function passed if it’s present in the configuration. You can copy the function and wrap it with IIFE function like this (function (){})() and paste this function in the dev tools console on your website. Here is the example:

(function() { return gtag("event", "uptain-em-popup-closed", { vent_category: "Uptain Email Popup", event_label: "Uptain Email Popup Closed" }), !0 })()

The function response you’ll see right under the function invocation as in the screenshot (in the third screenshot you can see a faulty function that is returning undefined). If true - all okay, if false or undefined the function is not right and the popup might have limited or faulty functionality.

 

GA4-1.png
GA4-2.png
GA4-3.png

 

Please note that we cannot guarantee functionality and are only offering assistance here.