Sending Widget Events to Google Analytics
Learn how to integrate your Reteno forms with Google Analytics.
You can send the event data related to the interaction of users with your Reteno widgets to your Google Analytics (GA) account.
Reteno supports the Universal Analytics and Google Analytics 4 scripts for tracking events on your website. You have to install the script, using one of the following methods:
- Setting up GA4 script for a website (directly into the website code).
- Setting up GA4 with GTM.
Important
It is recommended to install the Google Analytics 4 script, since the Google Universal Analytics property will stop processing data starting on July 1, 2023 (July 1, 2024, for Analytics 360 properties).
After that, you have to enable exporting the widget event data to Google Analytics.
Setting Up GA4 Script for a Website
To set up the Google Analytics GA4 script for a website:
- In your GA account, select the Admin icon to open the GA settings.
- Click Create→Property.
- In the Property setup, enter the property name, select the country, the time zone and the currency, then click Next.
- Describe your business — indicate the industry category and company size.
Choose your business objectives and click Create.
- Select the Web platform in the property menu.
- Enter the website URL and the stream name in the corresponding boxes, then click Create stream.
- Go to the Web stream details and click the copy icon beside the Measurement ID.
- Go to your site and insert the following code after the tag, where substitute MEASUREMENT_ID with the one copied in the previous step.
<!-- Google Analytics -->
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id={MEASUREMENT_ID}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{MEASUREMENT_ID}');
</script>
Setting Up GA4 with GTM
Before proceeding to setting up GA4 with GTM, you have to:
- Create a GTM account and a container following these instructions.
- Follow the GTM standard web page installation instructions.
To set up Google Analytics 4 (GA4) with Google Tag Manager (GTM):
- Follow steps 1 to 6 described in Setting up GA4 script for a website section.
- In Tag Manager, select Tags in the left-hand side menu and click New to create a new tag.
- Set the following tag configuration and triggering, then click Save:
- Select Google Analytics: GA4 Event as Tag Type.
- Use the measurement ID copied in step 7 of this instruction.
- Select All pages for Firing Triggers.
- In the left-hand side menu, select Triggers and then New to create a new trigger.
- In the slideout window, enter the trigger name and click the Trigger Configuration pane.
- Set the following configuration in the trigger configuration window:
- Select Custom Event as the trigger type.
- Enter reteno as the event name.
- Select All Custom Events for the trigger to fire on.
- Go to Variables in the left-hand side menu, and select New in the User-Defined Variables pane.
- In the slide-out window, enter configuration name and click the Variable Configuration pane.
- In the slide-out window, set the following parameters, then click Save:
- Variable Type
- Data Layer Variable Name
- Data Layer Version
You have to create the 3 variables with the following parameters:
Variable Type | Data Layer Variable Name | Data Layer Version |
---|---|---|
Data Layer Variable | eventAction | Version 2 |
Data Layer Variable | eventCategory | Version 2 |
Data Layer Variable | eventLabel | Version 2 |
- Go to Tags in the left-hand side menu, and create a new tag with the following configuration, then click Save:
- Select Google Analytics: GA4 Configuration as Tag Type.
- Select the tag you created at step 3 in Configuration Tag.
- Enter reteno as the event name.
- In Event Parameters, use the parameters and their values created in steps 8 and 9.
- In Firing Triggers, select Reteno event.
- Click Submit on the top panel.
Enabling Widget Event Data Exporting to GA
To enable the widget event data transfer:
- In your Reteno account, click Site — Widgets, and select the widget type in the left-hand side menu.
- Select the widget, which events you want to export.
- In the Widget Details menu, select Integrations and enable the Export data to Google Analytics slide button.
All the event data collected for that widget will be passed automatically to your GA account.
Viewing the Real-time Analytics
To view the real-time analytics in your GA account:
- Select Reports → Realtime in the left-hand side menu.
- Select reteno in the Event name column.
The list of event parameters displays. Click them to see the events.
The highlighted parameters are explained in the following table.
Parameter | Description |
---|---|
eventAction | It contains the events as described in Event categories and actions. |
eventCategory | Widget type. |
eventLable | Widget ID. |
Event Categories and Actions
GA displays Reteno events in a table as shown below.
The Event Category column contains the description of a widget/form type as described in the following table.
Widget/form type | Description |
---|---|
BUILT_IN | Inline widget/form |
DETACHED | Pop-ups |
FLOATING_BOX | Floating box, informer |
LAUNCHER | Launcher |
CONTENT_LOCKER | Content locker |
The Event Action column in GA contains the action type made on a widget. The event actions are explained in the table below.
Event Action | Description |
---|---|
LauncherShow_[ID] | The launcher button displays on a website. |
LauncherClick_[ID] | The launcher button clicked. |
FormShow_[ID] | The form is displayed on a website. |
FormClose_[ID] | A site visitor closed the form. |
FormStartFilling_[ID] | A site visitor started filling up the form. |
FormFinish_[ID] | A site visitor completed the subscription form (clicked “Subscribe”, no form validation errors) |
FormSuccessSubscribe_[ID] | Form filling up status (subscription success) |
FormAlreadySubscribe_[ID] | Form filling up status (already subscribed) |
FormErrorSubscribe_[ID] | Form filling up status (subscription error) |
The [ID] part of the events for a specific widget sending its data to GA has the following structure: f(form){id}v(variant){id}, where “f(form){id}” is the form ID and “v(variant){id}” is the form variant ID (see Note).
For example, FormShow_f781v781 in your GA table means that the form with the ID of 781, and the variant ID of 781 was displayed on a site.
The form ID is displayed in Reteno, on the Widgets page in the ID column.
Updated 2 months ago