SOLVED

How to determine which non-Marketo landing pages contain a form

Go to solution
Anonymous
Not applicable

How to determine which non-Marketo landing pages contain a form

We have a new person in charge of one of our instances; she wants to do an audit and get a handle on all of the assets within it. They have a contact form that is used on multiple non-Marketo landing pages, but she can't figure out which pages are using the form, except for one that she already knows about. Is there any way from within Marketo to determine which LPs are using the form? I just set up a script that will track the referring url, but that will only reveal locations as people fill out the form. Is there any way to locate the pages now? I have searched and searched in the community but found nothing so far.

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: How to determine which non-Marketo landing pages contain a form

You're right, if you wait for conversion, you still won't know about forms that are deployed but not getting any fillouts in your sampling timeframe.

Instead of waiting for conversion, you can trigger a Munchkin event when the form is loaded. Add this script to a Rich Text area on the form and reapprove it:

MktoForms2.whenReady(function(form){

    Munchkin.munchkinFunction('visitWebPage',{

        url: document.location.pathname + '/mktoFormAudit/',

        params: 'formid=' + form.getId()

    });

});

Now, each load of the form will result in a Visit Web Page activity to a synthetic URL ending with /mktoFormAudit/. The query string of these activities will show the form ID. Of course you can change the URL to your liking.

P.S. You don't need to add the current URL as a form field for this purpose, as the page hosting the form is already saved in the Activity Log. Adding the current URL as a separate field can be useful in other ways, though.

View solution in original post

3 REPLIES 3
Josh_Hill13
Level 10 - Champion Alumni

Re: How to determine which non-Marketo landing pages contain a form

I'd suggest running a bot on your site to look for the Marketo Form script or Form ID# that appears.

SanfordWhiteman
Level 10 - Community Moderator

Re: How to determine which non-Marketo landing pages contain a form

You're right, if you wait for conversion, you still won't know about forms that are deployed but not getting any fillouts in your sampling timeframe.

Instead of waiting for conversion, you can trigger a Munchkin event when the form is loaded. Add this script to a Rich Text area on the form and reapprove it:

MktoForms2.whenReady(function(form){

    Munchkin.munchkinFunction('visitWebPage',{

        url: document.location.pathname + '/mktoFormAudit/',

        params: 'formid=' + form.getId()

    });

});

Now, each load of the form will result in a Visit Web Page activity to a synthetic URL ending with /mktoFormAudit/. The query string of these activities will show the form ID. Of course you can change the URL to your liking.

P.S. You don't need to add the current URL as a form field for this purpose, as the page hosting the form is already saved in the Activity Log. Adding the current URL as a separate field can be useful in other ways, though.

View solution in original post

Anonymous
Not applicable

Re: How to determine which non-Marketo landing pages contain a form

Thank you!