Re: Non-trackable landing page is still identifying me

Grégoire_Miche2
Level 10

Re: Non-trackable landing page is still identifying me

Thx Dan,

I still have a error in the code on the "MktoForms2.whenReady( function(form)" line : Uncaught ReferenceError : MktoForms2 is not defined.

I m using a guide LP. The page is here : inficiences

Thx for any help 🙂

-Greg

Dan_Stevens_
Level 10 - Champion Alumni

Re: Non-trackable landing page is still identifying me

Now that I look more closely at our pages, we're getting the same error.  This is the standard code that both Sanford Whiteman​ and Kenny Elkington​ have shared.

SanfordWhiteman
Level 10 - Community Moderator

Re: Non-trackable landing page is still identifying me

The code that calls MktoForms2 methods must appear after the forms2.js script is loaded.

Dan_Stevens_
Level 10 - Champion Alumni

Re: Non-trackable landing page is still identifying me

So this can't be part of landing page template and instead needs to be manually added to any page that uses a form?

Dan_Stevens_
Level 10 - Champion Alumni

Re: Non-trackable landing page is still identifying me

...and if that's the case, how do you force it to appear after the forms2.js script is loaded when we can't alter the placement of those scripts (HTML snippet)?

SanfordWhiteman
Level 10 - Community Moderator

Re: Non-trackable landing page is still identifying me

<script>

$(function() {

        MktoForms2.whenReady(function(form) {

                form.addHiddenFields({

                        "_mkt_trk": ""

                });

                form.onSubmit(function(form) {

                        form.vals({

                                "_mkt_trk": ""

                        });

                })

        })

});

</script> 

I hate jQuery but since it's already loaded, that's the easiest way to wrap it up.

Dan_Stevens_
Level 10 - Champion Alumni

Re: Non-trackable landing page is still identifying me

pastedImage_0.png

SanfordWhiteman
Level 10 - Community Moderator

Re: Non-trackable landing page is still identifying me

Does this LP actually have a form on it?  Can you post the URL?

Grégoire_Miche2
Level 10

Re: Non-trackable landing page is still identifying me

Hi Sanford Whiteman​,

The error is gone, thx

But the page is still recognizing me, displaying my lead id (I use a token). The form is empty because I set the fields to not auto fill.

-Greg

Grégoire_Miche2
Level 10

Re: Non-trackable landing page is still identifying me

The URL is here :  inficiences Untraced Page

-Greg