Does Marketo have the ability to create private landing pages that customers can access through a password? We have some product landing page notes that we don't want prospect-facing, but would like to enable our customers to access and still have the same look/feel as other Marketo landing pages. Is this possible? I've searched the community & nothing comes up, so posting as a discussion here.
I would use a segment here to define dynamic content. The non-customer traffic can then see different content.
While Marketo doesn't offer a way to offer secured/password-protected pages, there are some techniques you can use to semi-restrict your LPs. Establish a common password that would be required to access these pages. Then create a custom field for your password.
You will be creating three landing pages:
Create a program and include these local tokens (text):
Create a simple form with this new custom "password" field and place it on your "login" LP:
Add the following js to this page (note, your "document.cookie" value will be unique to your instance):
<script language="javaScript" type="text/javascript">
<!--- PASSWORD PROTECTION SCRIPT
function TheLogin() {
var password = '{{my.Landing Page Password}}';
if (this.document.login.pass.value == password) {
var sessionTimeout = 1; //hours
var loginDuration = new Date();
loginDuration.setTime(loginDuration.getTime()+(sessionTimeout*60*60*1000));
document.cookie = "AvanadeLPSession=Valid; "+loginDuration.toGMTString()+"; path=/";
top.location.href="https://{{my.Landing Page URL}}";
}
else {
location.href="https://{{my.Unsuccessful Login Page URL}}";
}
}
// End hiding --->
</script>
On your success page, include the following js:
<script language="javaScript" type="text/javascript">
// Check to see is login cookie is set - if not, redirect to login page
if (document.cookie.indexOf("AvanadeLPSession=Valid") == -1) {
location.href = "https://{{my.Login Page URL}}";
}
</script>
Thanks to Sanford Whiteman for assisting with some of this javascript.
How about using RTP here. Seems like a simpler solution...but if these are Marketo landing pages vs. the website a segment will work.
The campaign should be able to read the Marketo cookie...
All of this potentially exposes your credentials. I know it's a small chance someone is going to search through source code but it's still not a best practice.
Agree, Robb. I should have pointed out that by no means is this a super secure setup. Nor should it be used for confidential/restricted content. We have used this with a few of our clients to give them some sense that this content was intended only for them after they attended an event. However, there would be no harm done if the presentations that were available on the landing page got out in the public domain.
There's a quicker way involving a form + dynamic segmentation -- if I ever get a breather I can blog it. Remind me in a couple of weeks.
Hi Sanford, did you by any chance get to blog about this? I just tried creating a password page using this method and can't seem to get it working.
There's no reason why your pages can't look like Marketo pages no matter where they are. In fact, good web design would be to create a seamless transition and the user never realizes they switched servers.
If you really want password protected, I would look outside Marketo. This is a good program but it's power is in creating Marketing programs, not content portals. You can have APIs that share info between the two, but clearly this type of functionality is not Marketo's intended purpose nor in it's wheelhouse.