SOLVED

How can I implement Google Tag Manager (GTM) into Marketo landing pages?

Go to solution
Highlighted
Anonymous
Not applicable

How can I implement Google Tag Manager (GTM) into Marketo landing pages?

Hi there! Just wanting to ask what the best process is for implementing GTM code into my Marketo landing pages? I assume this would be just like any standard implementation (e.g. place the code at the top of the <body> tags within the landing page template (Guided landing pages)).

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Level 10 - Community Moderator

Re: How can I implement Google Tag Manager (GTM) into Marketo landing pages?

Yes, if it's a global script, you'd hard-code it in the template.

If there's a need for some kind of conditional include, you can use a mktoBoolean.

View solution in original post

6 REPLIES 6
Highlighted
Level 10 - Community Moderator

Re: How can I implement Google Tag Manager (GTM) into Marketo landing pages?

Yes, if it's a global script, you'd hard-code it in the template.

If there's a need for some kind of conditional include, you can use a mktoBoolean.

View solution in original post

Level 10 - Champion Alumni

Re: How can I implement Google Tag Manager (GTM) into Marketo landing pages?

There are also several tips on the Forums and in previous Summits to use Folder Tokens to place the script across all/some pages and then update it more easily if desired.

Highlighted
Level 1

Re: How can I implement Google Tag Manager (GTM) into Marketo landing pages?

Will this cascade back to the pages that are already set up using that template, or will it just affect new landing pages moving forward?

Highlighted
Level 10 - Community Moderator

Re: How can I implement Google Tag Manager (GTM) into Marketo landing pages?

As long as you reapprove those LPs, they'll use the stuff in the new template.

Highlighted
Anonymous
Not applicable

Re: How can I implement Google Tag Manager (GTM) into Marketo landing pages?

I create snippets for all my GTM Tags as sometimes we need to leave the GTM tag off.

I then add them using a Marketo variable to the global template in the head.

<div class="mktoSnippet" mktoName="Add Google Tag Manager Code" id="GTM"></div>

I also place a "No Script version just under the <Body> tag

<div class="mktoSnippet" mktoName="Add Google Tag Manager Code No Script" id="GTM_NoScript"></div>

It works for us but you need to remember to add the Snippet on each page build.

Highlighted
Level 10 - Community Moderator

Re: How can I implement Google Tag Manager (GTM) into Marketo landing pages?

Clearer to use a boolean, no? (Unless you have multiple GTM "on" options.)