Form Tracking with LeadLander

How does form tracking work in LeadLander?

More content coming soon!

Activate Form Tracking via Marketo

If you are using Marketo forms, you will need to add the “onclick” line of code that is located below the standard form code. This code will need to be located on the form page after the code for the submit button. If not, the submission will not be sent to LeadLander.

FORM CODE TO INSTALL ON FORM PAGE AS CLOSE TO THE BOTTOM AS POSSIBLE, MUST BE AFTER SUBMIT BUTTON CODE:


<script type="text/javascript">llfrmid=XXXXX</script>
<script type="text/javascript" src="https://tracking.leadlander.com/formalyze_init.js"></script>
<script type="text/javascript" src="https://tracking.leadlander.com/formalyze_call_secure.js"></script>
<script>jQuery('.mktoButton').on('click', function(){formalyzer_call_onclick(XXXXX);});</script>

Activate Form Tracking via Gravity Forms

In order to activate LeadLander form tracking on forms hosted through Gravity Forms, you’ll need to include an additional line of code. This code needs to be placed as far to the bottom of their form page as possible. It must be after the code for the submit button.


<script>jQuery('#gform_submit_button_X').on('click', function(){formalyzer_call_onclick(XXXXX);});</script>

Activate Form Tracking via Ninja Forms

Introductory text goes here.


<script>
 var formalyze = [];
 formalyze.auto = false;
 (function() {
 var a = document.createElement('script');
 a.src = 'https://tracking.leadlander.com/scripts/formalyze.js?llid=XXXXX';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(a, s);
 })();
 window.onload = function () {
 if(typeof Marionette !== 'undefined') {
 var LLSubmitController = Marionette.Object.extend({
 initialize: function () {
 this.listenTo(nfRadio.channel("submit"), "init:model", this.beforeSubmit);
 },
 beforeSubmit: function (e) {
 var forms = document.querySelector("#nf-form-" + e.get("formID") + "-cont").querySelectorAll('form');
 for (var i in forms) {
 if (forms[i] && forms[i].tagName === "FORM") {
 if (typeof (formalyze.track) == 'function') {
 formalyze.track(forms[i]);
 }
 }
 }
 },
 });
 new LLSubmitController();
 }
 }
</script>

Activate Form Tracking via Pardot

To activate LeadLander form tracking on forms hosted via Pardot, you’ll need to insert our code into the form itself (the iframe). Here is a link, for reference: https://go.pardot.com/l/104432/2016-02-05/4vj12.

Paste this code into the form template page after the </style> tag:


<script type="text/javascript">llfrmid=#####</script>
<script type="text/javascript" src="https://tracking.leadlander.com/formalyze_init.js"></script>
<script type="text/javascript" src="https://tracking.leadlander.com/formalyze_call_secure.js"></script>

Follow these steps for the full process:

1. Navigate to Marketing.

2. Click on Landing Pages.

3. Select Layout Template.

4. Determine the appropriate Layout Template and click Edit to the right.

5. Copy and paste the LeadLander JavaScript code right before the close header tag on your HTML page.

6. Click Save.