Quick Start

The center.js library identifies and tracks visitors to your websites so that you can trigger custom rules in Center based on their actions. Installing the library is quite simple.

JavaScript Installation Snippet

When creating an integration for the Tracking Code in center, you will be presented with a snippet of JavaScript. This Installation Snippet uniquely identifies your website, and will track a visitor viewing the pages of your website.

<script>
  (function(a,c,d,b,e,f){a[d]=b;a[b]||(a[b]=function(){a[b].q=a[b].q||[];a[b].q.push(arguments)},d=c.createElement(e),d.async=!0,d.src=f,c=c.getElementsByTagName(e)[0],c.parentNode.insertBefore(d,c))})(window,document,"LeadPagesCenterObject","center","script","https://js.center.io/center.js");
  center('create', 'YOUR_PID_GOES_HERE', 'SiteName', {
    captureEmailForms: true
  });
  center('SiteName.send', 'view');
</script>

Copy-and-Paste the installation snippet you are shown when creating the integration into the source-code of your website. You should insert the snippet so that it renders into the <head> section of each page.