Is it possible to apply GTM script into all Marketo LP at once? | Community
Skip to main content
New Participant
June 9, 2023
Solved

Is it possible to apply GTM script into all Marketo LP at once?

  • June 9, 2023
  • 3 replies
  • 2983 views

Hi team, hope you are doing well.

We have a GTM code (similar as the one described in this page: https://googletagmanagersolution.com/tracking-marketo-form-submissions-using-google-tag-manager/) and we would like to implement it into our Marketo Landing Pages Templates.

In order to do so, we think we need to modify the HTML code related to the LP template to apply it to all LP related.

 

We were wondering if there is a way to apply to all LP Templates (or a subset of them) at once and include that GTM code as default when new LP Templates are created.

 

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Darshil_Shah1

When you update a landing page template, all the corresponding landing pages draw that change and get updated accordingly upon approving them (they go in draft mode when their respective template is updated). This is because LP assets are derived and based on their respective landing page template. However, you can't replicate that for LP templates, you'd have to make updates to all LP templates individually.

3 replies

Dave_Roberts
New Participant
June 12, 2023

As Sanford mentioned, this update needs to happen at the template level for each template that you'd like to update.

 

However, it IS possible to have one template that does "all the things" in Marketo and populates all the different use-case-specific layouts you use throughout the entire instance. If you've got a flexible enough template that can suit every use-case then something like this is possible by just updating the universal template in one place and thereby updating all the pages in one place. 

 

It might also be worth mentioning that when you add the tracking script to your LP template and approve the template it'll kick your LPs in "Approved" status into the "Approved with Draft" status and you'll need to re-approve each page before the changes to the template are reflected on the live page.

SanfordWhiteman
New Participant
June 10, 2023

We have a GTM code (similar as the one described in this page: https://googletagmanagersolution.com/tracking-marketo-form-submissions-using-google-tag-manager/


Sorry, but I don‘t see how that page shows in any way (let alone correctly) how to track success events for a Marketo form.

nsoria1Author
New Participant
June 12, 2023

Placing the google tag manager code should not cover the tracking of the activity?

SanfordWhiteman
New Participant
June 12, 2023
Not at all. You need to write custom code to hook into the Forms 2.0 JS API to properly track Marketo onSuccess events.
Darshil_Shah1
Darshil_Shah1Accepted solution
Community Manager
June 9, 2023

When you update a landing page template, all the corresponding landing pages draw that change and get updated accordingly upon approving them (they go in draft mode when their respective template is updated). This is because LP assets are derived and based on their respective landing page template. However, you can't replicate that for LP templates, you'd have to make updates to all LP templates individually.

nsoria1Author
New Participant
June 10, 2023

Thank you. I wanted to validate that LP templates can't be updated at once with the code.