Basic Integration

To start using Parse.ly, first install the tracking code on your site. The Parse.ly tracker is a small piece of JavaScript code that monitors user actions and relays them to the Parse.ly analytics servers.

To install, add this tag to all pages you would like to track (replacing ###### with your Parse.ly site id, e.g. mysite.com):

<script id="parsely-cfg" src="//cdn.parsely.com/keys/######/p.js"></script>

Add the tracker either directly to your HTML page templates, or load it via a tag manager (such as Google Tag Manager, Tealium, or Ensighten). We also provide examples of how to load the tracker via JavaScript.

A note on staging sites and test environments

You should never include the a tracker with your primary site id on staging, development, testing, or QA pages. Instead, contact support@parsely.com to get a test site id to use in those environments.

Optimizing tracker placement

The ideal place to put the Parse.ly tracker is as the last code block before the closing </body> tag. If your website uses a templating system, this is usually in the "footer" template.

Do you have an urgent support question?