How to Add Google Analytics Pixel to Unbounce
Adding Google Analytics to your Unbounce landing pages is the first step toward understanding how your campaigns actually perform. Without it, you’re flying blind, unable to see which traffic sources deliver qualified leads or how visitors interact with your page. This guide will walk you through exactly how to set up tracking, verify that it’s working, and start measuring what matters.
What You Gain by Connecting Unbounce to Google Analytics
Before jumping into the “how,” it’s helpful to understand the “why.” Connecting Google Analytics to your Unbounce pages unlocks critical insights that the built-in Unbounce stats alone can’t provide. It helps you move beyond simple view and conversion counts to see the bigger picture.
Here’s what you’ll be able to do:
- Identify Your Best Traffic Sources: Discover which channels - like Google Ads, Facebook, organic search, or email newsletters - are sending the most valuable converting traffic to your landing page. This lets you double down on what’s working and cut wasteful spending.
- Understand User Behavior: See how people engage with your page. You can track metrics like time on page, bounce rate, and specific events like clicks on key buttons or video plays, giving you clues on what holds their attention and what makes them leave.
- Analyze the Full Customer Journey: A Unbounce landing page is just one touchpoint. Google Analytics helps you connect that touchpoint to the rest of the customer journey, seeing what users did before and after visiting your page.
- Measure A/B Test Performance Accurately: While Unbounce has great A/B testing features, GA lets you segment the results by traffic source or device, revealing deeper insights. You might find that Variant A works better for mobile users, while Variant B excels with desktop traffic from Facebook Ads.
In short, it’s about collecting the raw data you need to make smarter marketing decisions rather than relying on guesswork.
Step 1: Locate Your Google Analytics 4 Measurement ID
The first piece of information you need is your unique identifier from Google Analytics. For Google Analytics 4, this is called a "Measurement ID." It acts as the address that tells Unbounce where to send all the tracking data.
If you don't have a Google Analytics property set up yet, you’ll need to create one first. Assuming you have one, here’s how to find your Measurement ID:
- Log in to your Google Analytics account.
- Click the Admin gear icon in the bottom-left corner.
- In the “Property” column, make sure you have the correct GA4 property selected. Then, click on Data Streams.
- Click on the Web data stream that corresponds to your website. If you only have one, just click on that.
- In the top-right corner, you'll see your Measurement ID. It will start with "G-" followed by a string of characters (e.g., G-XYZ123ABC).
- Copy this ID. You'll need it in the next step.
Quick Note on Universal Analytics (UA): If your tracking code starts with “UA-”, you are using the old version of Google Analytics, which was sunset in July 2023. All instructions moving forward will focus on the current GA4 standard, as it's the required platform for all new integrations.
Step 2: Add Your Measurement ID to Unbounce
Unbounce offers a few ways to add third-party code. For a standard Google Analytics setup, the built-in integration is the simplest and most reliable method.
Method 1: Use The Native Google Analytics Integration (Recommended)
This is the fastest and most foolproof way to get your tracking up and running. Unbounce built this feature to make the process as simple as possible, so you don't have to touch a single line of code.
Here are the steps:
- Log in to your Unbounce account.
- Navigate to the landing page, popup, or sticky bar you want to track. Open it in the Unbounce Builder.
- In the bottom left of the builder screen, look for the Page Properties section. Click on the Integrations tab.
- You'll see a panel of integration options. Select Google Analytics.
- A dialog box will appear. Simply paste the "G-" Measurement ID you copied from your Google Analytics account into the field provided.
- Click the blue Done button.
- Finally, be sure to Save and Republish your page for the changes to take effect.
That's it! Unbounce will now automatically add the necessary Google Analytics tracking script to the head of this specific page.
Method 2: Use the Unbounce Script Manager (Advanced Option)
The Script Manager is a powerful Unbounce feature that lets you add custom scripts across all pages on a specific domain. This method is useful if you want to deploy the GA4 tag across every single landing page on a domain at once, or if you plan to add other custom event tracking scripts later via Google Tag Manager (GTM).
You should only use one method - either the native integration on a per-page basis or the Script Manager for a whole domain. Using both will cause your tracker to fire twice, which will skew your data.
Here’s a breakdown of how to use the Script Manager:
First, get your Global Site Tag (gtag.js) from Google Analytics:
- Go back to your Admin > Data Streams > Your Web Stream in GA4.
- At the bottom, click on View tag instructions under the "Google tag" section.
- A new tab will open. Click on the Install manually tab.
- Here you will see the full JavaScript code snippet. It starts with
<!-- Google tag (gtag.js) -->and ends with</script>. Copy this entire block of code.
Next, add the script to Unbounce:
- In Unbounce, click on Settings from the left-side menu.
- Select Script Manager.
- Click the blue Add a Script button.
- Give your script a descriptive name, like "Google Analytics 4 - Global Tag."
- Under Placement, choose Head. This is crucial for tracking codes to load correctly.
- Under Included on, tell Unbounce where you want the script to run. You can choose All Domains or select just the specific domain(s) for your landing pages.
- Paste the entire Google Tag snippet you copied into the code box.
- Click Save And Publish Script.
Now, this script will be automatically included on any new and existing pages published to the domains you selected. You will not need to add the code manually every time you create a new campaign.
Step 3: Verify Your Tracking is Working Correctly
Never assume tracking is working just because you've added a script. Always verify it. A faulty setup can lead you to believe a campaign is failing when it's just a data collection issue. Thankfully, there are a couple of quick ways to check your work.
Check the GA4 Realtime Report
The simplest method is to see if your visit is registered by Google Analytics in real-time.
- Go to your GA4 property.
- From the left-hand navigation, click on Reports and then Realtime.
- In a separate browser session (or an incognito window, to simulate a new visitor), open your published Unbounce landing page.
- Switch back to the GA4 Realtime report. Within a minute or so, you should see yourself as an active user. You may see a dot appear on the world map and the "Users in last 30 minutes" card should increase by one. You may also see a
page_viewevent register in the event count table.
If you see activity, congratulations! Your basic tracking is working.
Use a Browser Extension like Tag Assistant
For a more technical confirmation, you can use the browser extension Google's Legacy Tag Assistant. It shows you exactly which Google tracking scripts are firing on a page.
- Install the extension from the Chrome Web Store.
- Navigate to your live Unbounce landing page.
- Click the Tag Assistant Companion extension icon in your toolbar and click Enable on the pop-up.
- Refresh the page.
- Click the extension icon again. It will now show a list of the Google tags found on the page. You should see your Google Analytics (gtag.js) tag listed with your G-ID. A green or blue colored badge confirms everything is working as it should. A red badge indicates an error in your setup that you need to investigate.
Next Steps: Tracking Conversions
Getting the GA pixel on your page is really just step one. The ultimate goal is to track conversions - the valuable actions you want users to take, like submitting a form or scheduling a demo.
The most common way to track Unbounce form submissions in GA4 is by using a dedicated "Thank You" page. When a user completes the form, they are redirected to a unique confirmation page (e.g., yourdomain.com/thank-you). You can then tell Google Analytics to count a visit to that "thank you" page as a conversion.
Here’s a brief overview of what is required:
- Create a thank-you page in Unbounce. This can be a simple page confirming their submission and telling them what to do next.
- Set the form submission action. In the form properties of your main Unbounce landing page, set the form confirmation to redirect to your new thank-you page URL.
- Configure a conversion event in GA4. Within GA4, go to Admin > Events tab. Click on Create event. Then set up the new Event to trigger or count any time a visitor views your new thank-you page. We typically name a conversion something relevant like 'unbounce_lead_generated.' A custom event might be triggered under the condition of
page_location= yourdomain.com/thank-you. After waiting some time for GA4 to detect your custom Event, go over to Conversions, also located within the GA4 Admin Screen. Click the "New conversion event," and simply give it the same thank-you-page URL.
By taking this extra step, you can start tracking not just traffic, but the actual business results generated by each of your campaigns.
Final Thoughts
Getting your Unbounce pages properly tracked in Google Analytics is a non-negotiable step for any data-driven marketer. By following the steps above, you can find your Measurement ID, install the tag via the easiest method for your needs, verify its operation, and take the first steps toward true conversion tracking.
Once your analytics data is flowing in, the next big challenge is turning those numbers into clear, actionable insights, especially when you need to combine landing page performance with data from other platforms like Shopify, Google Ads, or your CRM. It often leads to hours spent in spreadsheets. At Graphed, we remove this friction by connecting to all your data sources and allowing you to build real-time dashboards and get answers just by asking questions in plain English - no more manual report building or spreadsheet wrangling required.
Related Articles
How to Connect Facebook to Google Data Studio: The Complete Guide for 2026
Connecting Facebook Ads to Google Data Studio (now called Looker Studio) has become essential for digital marketers who want to create comprehensive, visually appealing reports that go beyond the basic analytics provided by Facebook's native Ads Manager. If you're struggling with fragmented reporting across multiple platforms or spending too much time manually exporting data, this guide will show you exactly how to streamline your Facebook advertising analytics.
Appsflyer vs Mixpanel: Complete 2026 Comparison Guide
The difference between AppsFlyer and Mixpanel isn't just about features—it's about understanding two fundamentally different approaches to data that can make or break your growth strategy. One tracks how users find you, the other reveals what they do once they arrive. Most companies need insights from both worlds, but knowing where to start can save you months of implementation headaches and thousands in wasted budget.
DashThis vs AgencyAnalytics: The Ultimate Comparison Guide for Marketing Agencies
When it comes to choosing the right marketing reporting platform, agencies often find themselves torn between two industry leaders: DashThis and AgencyAnalytics. Both platforms promise to streamline reporting, save time, and impress clients with stunning visualizations. But which one truly delivers on these promises?