SOLVED

Embedding a snippet into a Marketo Landing Page?

Go to solution
Anonymous
Not applicable

Embedding a snippet into a Marketo Landing Page?

Hey all,

Has anyone used Snippets with responsive landing pages? I'm trying to embed a snippet into a particular area of my code, and I can't find a code id for it. Since it's responsive, I can't drag and drop it, because it won't know where to live on the page.

I'm not using Marketo's responsive templates, by the way.

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Grégoire_Miche2
Level 10

Re: Embedding a snippet into a Marketo Landing Page?

Hi Allison,

ON Free forms, you just drag and drop the snippet where you want. The code I gave you earlier is for guided LP templates only.

But be aware, Free form are based on absolute positioning and should be developed on Marketo standards.

-Greg

View solution in original post

8 REPLIES 8
Grégoire_Miche2
Level 10

Re: Embedding a snippet into a Marketo Landing Page?

Hi Allison,

Check that the template has <div class="mktoSnippet" id="exampleSnippet" mktoName="Example Snippet"></div> where you want the snippet to be included. It is probably missing.

-Greg

Patrick_Cava2
Level 2

Re: Embedding a snippet into a Marketo Landing Page?

where do you locate the ID for the snippet?

Grégoire_Miche2
Level 10

Re: Embedding a snippet into a Marketo Landing Page?

HI Patrick,

When in Marketo design studio, you click the snippet, the URL looks like this: https://app-e.marketo.com/#SN1B18ZN56

The id is the number between "B" and "ZN". In the case above, it's 18.

-Greg

Grégoire_Miche2
Level 10

Re: Embedding a snippet into a Marketo Landing Page?

Second though,

Is your LP Template a Guided one or a free form one ?

-Greg

Anonymous
Not applicable

Re: Embedding a snippet into a Marketo Landing Page?

@gregoire_michel where do I find the Snippet id to replace "exampleSnippet"? I'm using a free form lp.

Grégoire_Miche2
Level 10

Re: Embedding a snippet into a Marketo Landing Page?

Hi Allison,

ON Free forms, you just drag and drop the snippet where you want. The code I gave you earlier is for guided LP templates only.

But be aware, Free form are based on absolute positioning and should be developed on Marketo standards.

-Greg

Anonymous
Not applicable

Re: Embedding a snippet into a Marketo Landing Page?

Hi,

Any step-by-step instructions around for someone who is not a coding expert? Thanks.

Anonymous
Not applicable

Re: Embedding a snippet into a Marketo Landing Page?

and thank you! Grégoire Michel​!