Google Analytics 4 (GA4) tracking

You can send Attentive events to Google Analytics 4 to allow for custom analysis. Our third-party tracking capabilities send events directly 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):

  1. In GTM workspace, set your User-Defined Variables. Attentive events can include four dataLayer variables: creative_id, creative_type, email, and source.
    ga4_5.png
  2. 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 the dataLayer.
    ga4_6.png
  3. Configure custom Tags:
    ga4_7.png
    • (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 parameter special_name in GA4 while still pointing to the original value.
  4. 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 Client Strategy 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:

  1. Sign in to your Google Analytics account.
  2. Click Admin.
  3. At the top of the Property column, select your property.
  4. In the Property column, click Data streams.
  5. Click the data stream for which you need the ID.
  6. In the Google tag section, click Configure tag settings.
  7. In the Your Google tag section, copy and save the ID that starts with "G-" or "AW-".
    ga4_1.png

(Optional) Modify or customize the events

  • All events have source = Attentive. You have the option of including creative_id with all of the events, including email with submitEmail events and creative_type with impression events. The event will show in the dataLayer 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)
      ga4_2.png
    • Example 2: Add, remove or edit parameters
      ga4_3.png
  • If you want to trigger an additional event, you can do it in Admin > Events > Create Event.
    ga4_4.png

View events from Attentive within Google Analytics

You can see all of the events in the GA4 reports panel.

Under Realtime (last 30 minutes)
ga4_8.png

Under Engagement > Events
ga4_9.png

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
Note: Creative type is only included when enabled through the advanced settings menu.

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"
}

Articles in this section

Was this article helpful?
0 out of 3 found this helpful