Re: mktoSnippet, mktoDefaultSnippetId, and Guided LP Template

Will_Etling
Level 2

mktoSnippet, mktoDefaultSnippetId, and Guided LP Template

I'm building a handful of Guided Landing Page templates.

For scalability, I want them all to include a shared snippet.

In my LP code I have defined a snippet like:

<div class="mktoSnippet" id="fsSnippetFooterScripts" mktoName="Don't Edit: Footer Scripts" mktoDefaultSnippetId="13">

But if I create a new LP based on this template, that default id of "13" seems to be ignored. The editor merely says "Unassigned."

Is it possible to set up a snippet that will be programatically included in LPs, without needing to edit each LP first? Preferably I could set the snippet ID as a token, and never have to think about it again...

1 REPLY 1
Dave_Roberts
Level 10

Re: mktoSnippet, mktoDefaultSnippetId, and Guided LP Template

Hey Will,

I think that mktoDefaultSnippetId="" is part of the email template syntax and not a part of the Landing Page syntax for snippets.

I haven't had any luck including a snippet by default in Guided Landing Pages. Here's a few links to the documentation for each, it looks like the syntax shows up in the Email portion but is missing in the Landing Page version.

Create a Guided Landing Page Template - Marketo Docs - Product Documentation

Email Template Syntax - Marketo Docs - Product Documentation

I had a look at the REST API reference here: http://developers.marketo.com/rest-api/assets/snippets/ and it doesn't look like there's a function to "place" a Snippet into an LP there.