While we provide built-in analytics for all of your Leadpages and Leadboxes, 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 Leadpages and Leadboxes 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’s code can cause issues on your pages or Leadboxes. 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…
Where to find page tracking
Each Drag & Drop page has a set of global Page 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 Leadpage 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
<body> section of your page.
You’ll also want to determine which page 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.
Drag & Drop Leadpages and Leadboxes
Here’s where you can install your tracking code in our Drag & Drop Leadpages and Leadboxes:
- Create or open a Drag & Drop Leadpage or Leadbox where you’d like to install your code.
- Click Page Tracking / Leadbox Tracking in the left 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 your page or Leadbox.
<body>section of a Leadbox will always appear at the beginning of the
You can paste tracking code onto any Standard Leadpage or opt-in form. Here’s how:
- Open an existing Standard Leadpage, 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 Leadpage or a standalone Standard Leadbox).
- 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
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 Leadpage in the Page Tracking tab under the SEO tab.
If you’re unsure what to put in your page’s SEO fields, review this article from Google: Create good titles and snippets in Search Results ↗
SEO settings are located in the Leadpage 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 Leadpage when you share it on social media. Some fields will also transfer over to other social networks. Learn more here. ↗
Frequently asked questions
Do third-party analytics work with Leadpages published to WordPress or my server?
Yes! As long as you include the code on your page, 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’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.
(Updated June 22, 2018)
Please let us know if you have additional questions.
You can always file a support ticket if you have additional questions by clicking the Support button in your dashboard shown here or clicking here to file a support ticket.