Skip to main content
Level 2
May 20, 2016
Question

Gated asset

  • May 20, 2016
  • 3 replies
  • 2289 views

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

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

3 replies

May 20, 2016

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
May 20, 2016

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

Level 2
May 23, 2016

I wanted to avoid adding another page...s

May 20, 2016

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.