While we provide built-in analytics for all of your pages and pop-ups, you can also use third-party analytics or tracking code. Tools like Google Analytics and Facebook’s Pixel provide powerful metrics so you can get even more data on your pages and forms’ performance.
In this guide, you’ll also learn where you can paste third-party tracking code in sites, pages, or pop-ups, as well as edit search engine keywords and social media previews.
The fine print
Here are some notes to keep in mind while you work with third-party analytics and tracking code:
- Modifying your page or site’s code can cause issues on your pages or pop-ups. Take care to properly configure your tracking code according its documentation, and avoid entering other code in the tracking code sections.
- Some services calculate metrics differently than our system, so in some cases third-party data will differ from our numbers. More info…
- All tracking and third-party analytics in the sites builder are site-wide, rather than page-specific.
Each page, site, or pop-up has a set of global Tracking settings. You can access them in the builder’s left-hand sidebar, as shown below.
If you're using the Standard Builder, you'll want to navigate to your Lead Page Options as indicated below.
Installing Third-party analytics (i.e. Facebook Pixel, Google Analytics)
Determine where to install your code
Before getting started, you’ll need to find out where your code should be installed. Check your tracking service’s documentation for their recommendation. Typically, they’ll suggest placing the code in the
You’ll also want to determine which destination to paste your code onto. Some services require you to paste their code on a “thank you” or confirmation page. Other tools might instruct you to install the code on your opt-in page itself.
You can find installation guides for Google and Facebook below:
If you’re using a different service, visit their site to find out where they recommend pasting their tracking code.
Google Analytics Tracking ID
Within the Tracking section of the Leadpages builder, you can paste your Google Analytics Tracking ID (i.e. UA-123456-0). This is a quick and simple way to get your Google Analytics tracking code running on your page or site.
Before following the steps below, you'll want to grab your Facebook Pixel code within the Facebook Ads Manager. We've got a couple of videos here to help you out!
Access your Facebook Pixel
Add Facebook Pixels to Leadpages
Drag & Drop pages, sites, pop-ups
Here’s where you can install your tracking code in our Drag & Drop pages, sites, and pop-ups:
- Create or open a landing page, site, or pop-up where you’d like to install your code.
- Click the Tracking tab in the left-hand sidebar, then select Analytics.
- Paste your tracking code in one of the fields provided, according to instructions from your analytics service provider.
- Click Save, then Update.
<body>section of a pop-up will always appear at the beginning of the
You can paste tracking code onto any Standard landing page or opt-in form. Here’s how:
- Open an existing Standard landing page, or create a new one.
- In the builder, click Lead Page Options in the left sidebar, then select Tracking Codes.
- Paste your code in the
bodysection, then click Done.
- Click Save in the top-right corner.
To add code to a form, follow the steps below.
- Open your form (which can be part of a landing page or a standalone Standard pop-up).
- Click Tracking Code in the left sidebar.
- Paste your code in either the “Extra head” or “Extra body” section, then click Okay. Click Okay again to save your form changes.
Search engine optimization (SEO)
Search engine optimization (SEO) is a complex topic, so we won’t cover all the details here. The good news is that a lot of best practices are built into Leadpages already—such as mobile responsiveness and structured HTML.
For additional tips, check out Google’s Webmaster Guidelines. While you may not be able to implement every single best practice, their guide provides handy advice for optimizing your pages.
Finally, you can set the title, keywords, and description of any page or site in the Tracking tab under the SEO tab.
If you’re unsure what to put in your page or site’s SEO fields, review this article from Google: Create good titles and snippets in Search Results ↗
Some Leadpages users want to make sure they have an SEO H tag on their page or site. You can make sure of this by using the headline widget, as each size setting within the headline widget corresponds with an H tag like so:
- Jumbo, Headline = <h1>
- Subhead = <h2>
- Small Subhead = <h3>
SEO settings are located in the Lead Page Options next to Tracking Codes in the Standard Builder, as indicated above.
Editing the title, description, and Facebook thumbnail image will impact the preview of your page or site when you share it on social media. Some fields will also transfer over to other social networks. Learn more here. ↗
Frequently asked questions
Why is Google Analytics registering more than one domain?
At times, Google Analytics will register more than one domain under a single contact if you have your pages published to a domain you own, as these pages are also published on your Leadpages Domain. If you'd like the analytics to only register your custom domain, you'll want to add your Leadpages Domain (i.e. subdomain.lpages.co) to the Referral Exclusions list in your Google Analytics account.
Do third-party analytics work with Leadpages published to WordPress or my server?
Yes! As long as you include the code on your page or site, it should work with all of our publishing options, including WordPress. If you use our Advanced HTML export feature, it’s usually best to paste your tracking code right within your page or site’s source code (rather than in the builder).
I need help setting up my tracking code… what are my options?
As much as we’d like to help, we’re not able to provide direct support for third-party analytics platforms. That said, many top services have excellent guides that cover everything from setup to troubleshooting advice.
If you’re still stuck, you might try reaching out to your analytics service’s support team—or, if they don’t offer one-one-one support, check for a forum, such as those for Google and Facebook:
That said, don’t hesitate to reach out to us if you have issues or questions about anything within Leadpages.
Need more help?
You can always get in touch with our support team—just click help_circle in the top-right corner of your Leadpages dashboard, or submit a ticket ↗