Lead Gen & CRM
How can we help you?
Search our help articles, video tutorials, and quickstart guides

You've got this. You've got us. Search our Knowledge Base to quickly find answers to your questions.

Implementing Google Tag Manager on Landing Pages

Article: 000050498
Updated: July 10, 2024

Add Google Tag Manager code to your landing page for additional tracking capabilities.

In addition to our site analytics available, you may want Google Tag Manager implemented on your site. By default, pages built in Lead Gen & CRM do not have Google Tag Manager tracking. This article will detail how to implement Google Tag Manager on landing pages.

 


Users:
Administrators 
Company Managers 
Marketing Managers 
Sales Managers  
Salespersons  
Jr. Salespersons  

Light Bulb IconTip: Are you looking for information about Constant Contact’s Email and Digital Marketing product? This article is for Constant Contact’s Lead Gen & CRM product. Head on over to the Email and Digital Marketing articles by clicking here. Not sure what the difference is? Read this article.

 

Placing Code on Landing Pages

To place tracking codes on landing pages, create or edit a landing page:

  1. ​​​Click  code.png  Edit Code in the left panel.
  2. Change the Page drop-down menu to All Pages.
  3. Click the Head tab. 
  4. Replace GTM-XXXX with your container ID in the below code snippet. Copy the modified code snippet and paste the code snippet immediately after the opening <head> tag on every page.
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXX');</script>
<!-- End Google Tag Manager -->

​​​​​

  1. Click Save and Close.
  2. Click Publish.

    Add Google Tag Manager code to Landing page code
     

Note: Constant Contact offers Professional Services to assist with custom coding.

Refer to Google's help documentation for more information on web tracking with Google Tag Manager. However, when utilizing this external documentation, do not follow the second step that deals with <body> tag content. Instead, use the supplied block of text in the above procedure.

This is due to how Google's instructions uses code that contains <noscript> tags. Lead Gen & CRM does not permit <noscript> tags. Also, Google's code can only run when JavaScript is not present in code. Lead Gen & CRM landing pages require JavaScript, which means that Google's supplied code would cause errors.

 


Did this article answer your question?


Constant Contact Logo

Copyright © 2025 · All Rights Reserved · Constant Contact · Privacy Center