24 Replies Latest reply on Oct 28, 2015 1:19 PM by Grégoire Michel

    Non-trackable landing page is still identifying me

    Dan Stevens

      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?