Installing LeadLander Tracking Code

In this article, we’ll walk you through how to install LeadLander’s custom tracking code no matter what platform you’re using. Here’s an outline to help you find your way:

Install via Google Tag Manager

Step 1: Click Tags > New.

Step 2: Click Tag Configuration and select Custom HTML.

Step 3: Insert the tracking code and select save.

Step 4: Choose Page View as the triggering option.

Step 5: Click Publish.

Install on Wix

To add your LeadLander tracking code to your site:

  • Go to Settings in your site’s dashboard
  • Click the Custom Code tab in the Advanced section.
  • Click + Add Custom Code at the top right.
  • Set up your custom code:
  • Enter the LeadLander code as follows

<script>
var llcookieless = false; 

var formalyze = []; 

formalyze.auto = true; 

formalyze.callback = function(options) {}; 

(function() { 

var a = document.createElement('script'); 

a.src = 'https://lltrck.com/scripts/lt-v3.js?llid=XXXXX'; 

var s = document.getElementsByTagName('script')[0]; 

s.parentNode.insertBefore(a, s); 

})(); 

</script>

<script type="text/javascript">

  var pushState = history.pushState;

  history.pushState = function () {

    pushState.apply(history, arguments);

    ll_track();

  };

  window.addEventListener('popstate', function(){ll_track()});

</script> 

  • Replace the “XXXXX” part of the code with your account ID.
  • Define a name for your custom code
  • Add Code to Pages: All Pages
  • Click the drop-down to select an option: · Load code on each new page.
  • Place Code in: Select where the code snippet is placed in your site’s code: Head
  • Click Apply.

Install on Squarespace

You can install the LeadLander code to your Squarespace site by using Code Injection:

Step 1: Open Code Injection

In the Home Menu, select “Settings > select “Advanced” > select “Code Injection”.

Step 2: Add the LeadLander Tracking code​

Add LeadLander Tracking code into the Header or the footer fields.

Step 3: Save

After adding your code, click Save.

Install on WordPress

Below are the two common methods that are used to implement the LeadLander Tracking Code into a WordPress site.

Using the “Header/Footer” plug-in:

  1. Download and install the Header-Footer plugin
  2. Go to Settings > Header-Footer
  3. Cut and paste the tracking code in the bottom footer textbox.

Plugging the code in manually:

  1. Log into the WordPress admin panel
  2. Go to Appearance > Editor (theme editor)
  3. Select the footer.php or index.php
  4. Find the </body> HTML tag
  5. Copy and paste the tracking code before the </body> tag.
  6. Don’t forget to click Update File to save changes.

The link below also has some information on adding JavaScript to a WordPress website: http://codex.wordpress.org/Using_Javascript

Let us know if you have any questions or problems from here, and we will be glad to help.