You can send Attentive events to Google Analytics 4 to allow for custom analysis. Our third-party tracking capabilities send events to Google Analytics 4, and you’re able to make any customizations you want.
You can add Attentive reporting to your Google Analytics 4 dashboard to track sign-up events along with your other site analytics.
See the Example events section for more details about each event.
Prerequisites
You must meet the following requirements in order to turn on third-party tracking for Google Analytics 4:
- You must have an active Google Analytics account and dashboard.
- You must have Google Analytics 4 integrated with your site. Complete the steps outlined here or here and here (if using Google Tag Manager) to get started. After you have Google Analytics 4 set up, you can request this feature from Attentive.
- You must use Attentive sign-up units for SMS list growth.
GA4 installed via Google Tag Manager
If GA4 has been installed via Google Tag Manager (GTM):
- In GTM workspace, set your User-Defined Variables. Attentive events can include four
dataLayer
variables:creative_id
,creative_type
,email
, andsource
. - Configure custom Triggers for the events you want to see in your GA4 reports panel. This trigger will fire when an event with the name of
submitEmail
is detected in thedataLayer
. - Configure custom Tags:
- (Optional) Event Name is how your event will show in your GA4 panel. If you want to rename it to
email_sign_up
instead, you can do that here or in the GA4 Admin panel. - Define which of the event parameters that you get from Attentive that you want to pass along with the event. Parameter values can point to the
dataLayer
variables from step 1, or you can hardcode them to something else. - (Optional) You can also give your parameter a different name while keeping the original value. Instead of
source
, the event will have a parameterspecial_name
in GA4 while still pointing to the original value.
- (Optional) Event Name is how your event will show in your GA4 panel. If you want to rename it to
- Click Submit (in the top-right corner) and Publish to make your changes live.
Receive events from Attentive in your Google Analytics 4 dashboard
Let our White Glove team (whiteglove@attentivemobile.com) or your dedicated Customer Success Manager (CSM) know that you want to enable third-party tracking for Google Analytics 4, and they will enable the events on whichever sign-up units you specify.
(Optional) For landing pages hosted by Attentive
Contact our White Glove team (whiteglove@attentivemobile.com) or your dedicated CSM and provide them with the tracking ID for onsite sign-up units to use the tracking services already initialized on your site. Landing pages are hosted by Attentive, so you need to provide the tracking ID to initialize the services properly. Complete the following steps:
- Sign in to your Google Analytics account.
- Click Admin.
- At the top of the Property column, select your property.
- In the Property column, click Data streams.
- Click the data stream for which you need the ID.
- In the Google tag section, click Configure tag settings.
- In the Your Google tag section, copy and save the ID that starts with "G-" or "AW-".
(Optional) Modify or customize the events
- All events have
source
= Attentive. You have the option of includingcreative_id
with all of the events, includingemail
withsubmitEmail
events andcreative_type
withimpression
events. The event will show in thedataLayer
immediately after it happens. - You can rename events as well as event parameters (labels) in Admin > Events > Modify Event.
- Example 1: Rename specific event(s)
- Example 2: Add, remove or edit parameters
- Example 1: Rename specific event(s)
- If you want to trigger an additional event, you can do it in Admin > Events > Create Event.
View events from Attentive within Google Analytics
You can see all of the events in the GA4 reports panel.
Under Realtime (last 30 minutes)
Under Engagement > Events
Example events
The following sections outline the default names for each event and include a corresponding example.
Impressions
name: impression
creative_id: creative id
creative_type: creative type
source: Attentive
Example event
{
"event": "impression",
"creative_id": "1234",
"creative_type": "bubble",
"source": "Attentive"
}
Email signups
name: submitEmail
creative_id: creative id
email: email
source: Attentive
Note: Email address is only included when enabled through the advanced settings menu.
Example event
{
"event": "submitEmail",
"creative_id": "1234",
"email": "test@test.com",
"source": "Attentive"
}
SMS signups
name: submitSMS
creative_id: creative id
source: Attentive
Example event
{
"event": "submitSMS",
"creative_id": "1234",
"source": "Attentive"
}
Creative Close
name: close
creative_id: creative id
source: Attentive
Example event
{
"event": "close",
"creative_id": "1234",
"source": "Attentive"
}
Creative Expand
name: expand
creative_id: creative id
source: Attentive
Example event
{
"event": "expand",
"creative_id": "1234",
"source": "Attentive"
}