To track the effectiveness of your popups, WP Popups offers two complementary ways to track popup analytics:
- Built-in analytics in the WP Popups dashboard
- An integration to set up Google Analytics Event Tracking to view popup analytics in the Google Analytics dashboard
In this article, you’ll learn how to configure and use both methods. You can click below to jump to a specific method:
By default, WP Popups tracks three statistics for every popup on your site:
- Impressions – how many times your popup has been displayed to users.
- Conversions – how many times users have “converted” on your popup. For example, on an email opt-in popup, a “conversion” would be someone submitting their email address to join your list.
- Conversion Rate – the percentage of conversions vs impressions (Conversions / impressions * 100)
To view the statistics for your popups, go to WP Popups -> All Popups. There, you will see a column for each statistic:
How to Reset Stats for a Popup
If you change something on your popup, you might want to reset the statistics so that you can see a popup’s fresh performance without mixing in any older statistics.
To reset the statistics for a popup, hover over that popup and click the Reset stats link:
How to Disable WP Popups Built-In Analytics
If you don’t want to use WP Popups’ built-in analytics, you can disable this feature:
- Go to WP Popups -> Settings
- Find the Enable Stats feature in the Analytics section
- Use the drop-down to change the value to No
If you use Google Analytics, you can integrate WP Popups with Google Analytics Event Tracking to view popup statistics in the Google Analytics dashboard.
With this feature, WP Popups will automatically add Google Analytics Event Tracking to your popups to track both impressions and conversions.
You can then track your popups by visiting the Events area under Behavior in your Google Analytics dashboard. You’ll also be able to take advantage of all of Google Analytics’ other features to segment your popup conversions and impressions.
Follow the steps below to set up Google Analytics Event Tracking with WP Popups…
1. Get Your Google Analytics ID
To get started, you need to find your website’s Google Analytics ID:
- Open your website in the Google Analytics interface
- Click the Gear icon in the bottom-left corner of the Google Analytics interface
- Select Data Streams under the Property column
- Click your web streams details and copy the MEASUREMENT ID Code from the details page
2. Add Measurement ID to WP Popups
- Open your WordPress dashboard
- Go to WP Popups -> Settings
- Add your Google Measurement ID to the Measurement ID code box
3. Configure Event Tracking
You can manually edit the Google Analytics tracking information if needed on each popup settings page. You do not need to manually edit these values – your event tracking will start working with the default values.
By default, WP Popups will add your Popup ID as the Event Label in Google Analytics. This lets you view analytics for individual popups.
4. View Event Tracking in Google Analytics Dashboard
Once you enable WP Popups Google Analytics Event Tracking, you can view statistics for your popups in your Google Analytics dashboard. You can find the main Events report in the Events menu under Engagements section:
Once you understand how your popups are currently performing, you can use A/B testing to test different variations and choose the variant with the best performance.
If you are using Google Tag Manager, you will need to add gtag variable to store datalayer events by adding the following code:
window.dataLayer = window.dataLayer || ;