Non-trackable landing page is still identifying me

Highlighted
Level 10 - Champion Alumni

Non-trackable landing page is still identifying me

I've build a non-trackable landing page template that includes the following code:

<!-- CREATE EMPTY MUNCHKIN COOKIE - TO ESENTIALLY MAKE THE PAGE UNTRACKABLE -->

  <script>document.cookie = "_mkto_trk=;path=/;domain="+window.location.host+";expires=0"</script> 

<!-- END -->

 

<!-- Clear the Marketo tracking cookie value on submission of the form, without having to delete the cookie itself from the user’s browser. -->

  <script>

//add a callback to the first ready form on the page

MktoForms2.whenReady( function(form){

    //add the tracking field to be submitted

        form.addHiddenFields({"_mkt_trk":""});

        //clear the value during the onSubmit event to prevent tracking association

    form.onSubmit( function(form){

        form.vals({"_mkt_trk":""});

    })

})

</script> 

<!-- END -->

I then use this template to build a landing page with a form where no tracking or identification should occur (this page will be used internally to approve/deny event registrants).  Yet when I visit the page, all of the pre-fill fields are auto-populated with my name.  Am I forgetting another piece of code?

26 REPLIES 26
Highlighted
Level 10 - Community Moderator

Re: Non-trackable landing page is still identifying me

window.location.host is the FQHN of the current page that appears in your browser's location bar.

In other words, for the Community site, nation.marketo.com.  You want to clear cookies that apply to the parent and all subdomains: .marketo,com.

Highlighted
Level 10 - Champion Alumni

Re: Non-trackable landing page is still identifying me

I'm not sure I'm following exactly.  Here's the landing page:

https://pages.avanade.com/Template---Roadshow---Head-Space-Event-Approval_approved.html?EmailAddress...

What changes are needed in the above code?

Highlighted
Level 10 - Community Moderator

Re: Non-trackable landing page is still identifying me

Can't see the source from my mobile, but you probably want to replace

document.location.host

with

'.avanade.com'

Note that the quotation marks _are_ included.

Highlighted
Level 10 - Champion Alumni

Re: Non-trackable landing page is still identifying me

That fixed it, Sanford, thanks!

Highlighted

Re: Non-trackable landing page is still identifying me

Hi Dan,

Pardon my question, Isn't "non traceable" landing page template working  ?

Why is that ?

-Greg

Highlighted
Level 10 - Champion Alumni

Re: Non-trackable landing page is still identifying me

Hi Greg - I understand what you're asking.  Can you clarify?

Highlighted

Re: Non-trackable landing page is still identifying me

My question is why do we need to add theses codes to non traceable LPs?

I haven't tested intensely, but it seemed to me that a non traceable should not be able to recognize you, but this post seems to suggest otherwise, so I am troubled.

-Greg

Highlighted

Re: Non-trackable landing page is still identifying me

And also,

Where do we need to put these codes ?

The first one in the <head>

and the second at the bottom of the <body>?

-Greg

Highlighted
Level 10 - Champion Alumni

Re: Non-trackable landing page is still identifying me

Greg, Marketo doesn't include a non-trackable landing page template.  Which is why we built this ourselves with the custom code.  The entire code block is contained within the head.  Here's how it's deployed within our template:

pastedImage_0.png

We also use this template for our teleprospecting lead forms that our inside sales team uses to capture the info after having a conversation with a potential lead.