Re: Keeping tabs on embedded forms

Trevor_McCurry
Level 2

Keeping tabs on embedded forms

Are there any common best practices for tracking embedded forms that are in use, and where they are being embedded?

4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

Re: Keeping tabs on embedded forms

You can only tell where they're embedded if they're also being filled out. The form load alone is not logged (if you load from your Marketo instance, which of course 99.99999% of people do). You can do this by exporting the Activity Log and crunching it offline.

If you want to log the form loads going forward, you can add code to the form to fire a special Munchkin event upon load.

Trevor_McCurry
Level 2

Re: Keeping tabs on embedded forms

Sanford Whiteman wrote:

If you want to log the form loads going forward, you can add code to the form to fire a special Munchkin event upon load.

Thanks Sanford! Can you elaborate a bit more on this type of solution for logging them moving forward?

SanfordWhiteman
Level 10 - Community Moderator

Re: Keeping tabs on embedded forms

Something like:

MktoForms2.whenReady(function(form){
  Munchkin.munchkinFunction("visitWebPage", {

    url: "/customEvents/formEvents/load/" + form.getId()

  });

});

Then you'll have Visit Web Page events for each load.

Pavel_Plachky
Level 5

Re: Keeping tabs on embedded forms

To get this info, I export the form fill activities, which gives most of the data you would need to keep track of the form usage including date/time, form ID and the URL of the page containing the form in a csv file. As Sanford notes, you will not see the forms that are embedded on pages that nobody ever used to fill the form, but I am OK with disregarding such places. You can use the bulk activity export REST API for this.