Want to integrate your Popups & Sticky Bars with event tracking in Google Analytics? This article will explain how.
What you will need:
- A GA4 property set up on the website where the popup/sticky bar is embedded,
- An Unbounce Popup & Sticky Bar,
- A working domain or subdomain.
Integrating Popups & Sticky Bars with Google Analytics
- First, follow the instructions in this documentation, Installing Your Popup or Sticky Bar, to install your embed code to your website.
- Next, confirm that you have GA4 installed on your website/landing page.
- Check out Getting Your Website Tracking ID for instructions on setting this up.
- In the Popup or Sticky Bar Overview page, scroll down to the Google Analytics section:
- Toggle the button titled Fire Google Analytics events when this is shown, and when visitors convert:
- You can customize the event label, so it's easily distinguishable later in Google Analytics, such as "popup button click" or "sticky bar view" etc:
- If you have multiple variants for your Popup or Sticky bar, you can tick the option to Append the variant letter.
- Save & republish the Sticky Bar/Popup at the top of the Overview page.
You're all set. You will start receiving events on Google Analytics.
Reviewing Event Labels in GA4 or Universal Analytics (UA)
At this time, Unbounce will send both GA4 and Universal Analytics trackers. Here is how these events will appear in Google Analytics.
Google Analytics 4 (GA4):
- Name: "unbounce_popup_view", "unbounce_sticky_bar_view", "unbounce_popup_conversion", or "unbounce_sticky_bar_conversion"
- "Event_label" parameter: the unique ID for the Popup or Sticky Bar by default, or the customized event label set up in the Sticky Bar/Popup Overview (as mentioned in step 5 above).
Universal Analytics (UA):
- Category: "Unbounce Convertable"
- Action: "view" or "conversion"
- Label: the unique ID for the Popup or Sticky Bar by default, or the customized event label set up in the Sticky Bar/Popup Overview (as mentioned in step 5 above).