skip to Main Content

How to Add Google Analytics Data to a LeadPage

How To Add Google Analytics Data To A LeadPage

There are a number of ways to get analytics data from your LeadPages that you generate from Here’s a way to add your own Google Analytics data to your LeadPage:

  1. In the LeadPages editor, head to your Page Settings:

2. Then navigate to the Analytics tab:

3. Leave the tracking ID section blank, and add your custom code to the box below:

Lead Pages GA Code

Note this is the new gtag.js code.  And here’s the code itself to copy and paste:  (please note that this is a work in progress, and you might find a better way. SHD makes no guarantees for the code below. Use at your own risk).

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src=""></script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-XXXXXX-XX', {
'page_title' : 'your page title here',
'page_path': '/somePath'

Back To Top