Gated asset

Patricia_Mercha
Level 2

Gated asset

any one know how to set up one gated asset on a LP?  basically what I have is a landing page with videos and case studies...however I want to gate just one of the assets...so when they click on the asset a window pops us asking just for their email address - obviously once that has been done and they come back - they wont have to do that step again...any one know how to do this?  and please explain in laments terms as I a new to Marketo...Help would be very much appreciate.

Thanks

P

4 REPLIES 4
Anonymous
Not applicable

Re: Gated asset

You will need to do this with some javascript on the page, it won't be a native marketo feature.  Unfortunately I do not know Javascript so I can't show you the exact code you will need.

Josh_Hill13
Level 10 - Champion Alumni

Re: Gated asset

Instead of requiring coding, why not just direct the person to another page with a form on it?

Patricia_Mercha
Level 2

Re: Gated asset

I wanted to avoid adding another page...s

Anonymous
Not applicable

Re: Gated asset

I'd run a little javascript check against the email token:

<script>

var leadEmail = '{{lead.Email Address}}';

if (!leadEmail) {

//This is an anonymous visitor so show gated content.

console.log("Unknown");

} else {

//This is a known visitor, so show ungated content.

console.log("Known");

}

</script>

If you don't want to code anything, Josh Hill​'s answer is your next best bet.