How to track your pop-up statistics in Google Analytics

Available with a paid pricing plan, as well as during the 7-day free trial

In addition to tracking statistics in your Google Analytics account, you can send data on your click-through and subscription rate via various communication channels. This will help you see the bigger picture of your pop-ups’ performance and simplify the process of analyzing statistics.

Let's talk about how to send an event from SendPulse’s pop-up service to Google Analytics 4.

On July 1, 2023, standard Universal Analytics properties will stop processing data, and support for Analytics 360 properties will only continue until July 1, 2024. The supported and recommended version is Google Analytics 4.

Overall parameters for data transmission

To integrate with Google Analytics, you need to use four entities: event, event category, event action, and event label.

Event

Tracks user interaction with content.

You can automatically send the following events from your SendPulse project to your Google Analytics account:

Button click A user clicked on a button in a pop-up (call to action)
Email address received A user entered their email address in a pop-up form (newsletter subscription).
Phone number received A user entered their phone number in a pop-up form.

Event category

A category is a recurring group of events.

Used to generalize a recurring group of events that marks the following data channels:

pop_up Pop-up.
floating_button Floating panel with messenger buttons.

Action

Defines the type of user interaction with site elements. This is the event type that is sent to Google Analytics, for example, Button Click.

In total, there are six actions available:

Button click (onButtonClick) A user clicking on a button. This action is triggered by any pop-up target action, for example, "Call to action" or "Newsletter subscription."
Email received (onEmailSet) Receiving an email address from a user. The pop_up event category is triggered by the "Newsletter subscription" target action.
Phone received (onPhoneSet) Receiving a phone number from a user. The pop_up event category is triggered by the "Phone number request" target action.

If you select the “Phone number request” or “Newsletter subscription” action, the action corresponding to the data type entered by the user will be triggered. For example, the onEmailSet action will be triggered when you receive the user’s email address, and the onPhoneSet action will be triggered when you receive the user’s phone number.

Event label

Allows you to send additional information about the monitored event.

When integrating SendPulse with Google Analytics, a label is used for the pop_up and floating_button event categories to separate the events within their category by action type.

In total, there are 11 labels available:

  • Call to action (action request);
  • Chat button (chat button);
  • Telegram (the user was redirected to Telegram);
  • Snapchat (the user was redirected to Snapchat);
  • WhatsApp (the user was redirected to WhatsApp);
  • Messenger (the user was redirected to Messenger);
  • Instagram (the user was redirected to Instagram);
  • YouTube (the user was redirected to YouTube);
  • Twitter (the user was redirected to Twitter);
  • Viber (the user was redirected to Viber).
  • Custom Link (following the specified link).

Integrating with Google Analytics

Copy your Measurement ID

Log in to your Google Analytics account, and go to Admin > Property > Data stream. Find the site page where you installed your pop-up — you can identify it using its stream URL.

Go to the detailed stream settings.

Copy your unique Measurement ID.

Copy your API Secret

If you plan to transfer the collected data via the Measurement Protocol API and send it to the Google Analytics servers via HTTP requests, you need to get your API secret as well. To copy it, go to the Stream details > Measurement Protocol API secrets settings.

Click Create.

Specify a name for your API secret so that you can easily identify it later, and click Create again.

The system will generate a unique key you can copy.

Connect Google Analytics in SendPulse

In your SendPulse account, select a project you want to set up the integration for. Go to the Integration tab > Google Analytics, and click Connect.

In the Tracking ID field, enter insert your Measurement ID.

If you use Google Analytics 4 (the Measurement ID prefix is G-), you'll also see a field where you need to add your secret.

Use the checkboxes to select which events you want to track, and click Save.

From now on, you will be able to edit or delete the integration by clicking Edit.

Tracking statistics in Google Analytics

Log in to your Google Analytics account.

After you set up your Measurement ID, Google Analytics starts collecting data on user conversions and events on your website.

On the Realtime overview page, you can see the number of visitors over the last 30 minutes and the devices from which users land on your site.

To view user interactions with your website, go to the Reports tab > Life cycle > Engagement > Events.

Depending on the pop-up settings you've selected, Google Analytics can display the following event data:

  • Button click: click
  • Email address received: onEmailSet
  • Phone number received: onPhoneSet

To see detailed statistics on click-throughs and user sessions, go to Reports > Life Cycle > Acquisition > Traffic acquisition.

In Acquisition > User acquisition, you can view your users’ demographic data.

You can customize the output of all the metrics you want on the Reports snapshot page. For example, you can display metrics with data on traffic sources, campaign tags, and user geolocation and then move on to detailed analysis in the relevant sections.

To customize the metrics to be displayed, click the pencil icon in the upper right corner.

Google Analytics metrics can display different data depending on the settings. Check out the Google Analytics 4 documentation to better navigate the service settings.

    Rate this article about "How to track your pop-up statistics in Google Analytics"

    User Rating: 4 / 5 (6)

    Previous

    How to view your pop-up statistics

    Popular in Our Blog

    Try SendPulse today for free