Adding Google Tag Manager to Landing Pages

  • Updated

Once you have your Google Tag Manager (GTM) account and tags set up, you need to copy the embed code onto your individual Act-On Landing Pages for GTM to actually track anything there. This step applies to any kind of GTM tracking, including managing cookie consent on your pages.

Why this matters: GTM tags only fire on pages that have the container code installed. Skipping this step means your Landing Pages stay invisible to whatever GTM tracking or cookie-consent management you've set up elsewhere on your site.

Instructions

  1. Copy your GTM tracking code.
    • There will be two sections: one for page head and one for page body.
  2. Go to Content > Landing Pages, find the Landing Page you want, hover over it and to edit.
  3. From the right-side panel in the Design tab, click Edit JavaScript:

From the right-side panel in the Design tab, click Edit JavaScript.

  1. Add the head portion of your GTM container code to the text box, then click OK.
  2. Insert a custom content block at the top of the Landing Page.
  3. In the Edit Custom Content panel, paste the body portion of your GTM container code.
  4. If you are using GTM for cookie management, select Edit Page Properties and enable Don’t Cookie Visitors:

Screenshot of the Edit Page Properties menu option for a Landing Page.

Screenshot of the Don't Cookie Visitors checkbox enabled in Landing Page properties.

  1. Save your Landing Page.

You're all done! Remember to repeat these steps for any other Landing Pages that you'd like to track with GTM.

Remember to repeat these steps for any other Landing Pages that you'd like to track with GTM.

Was this article helpful?

Have more questions? Submit a request