IMPORTANT NOTE: If you've installed our Magento or Shopify extensions, the JavaScript tracking snippet should already be added to your store automatically.

If you are installing the script manually, your unique JavaScript tracking snippet can be found by accessing settings from the dashboard and clicking in Contacts > Settings, and scrolling to the bottom.

Each Pathfinder account has its own unique tracking snippet with a unique API KEY & unique SUBDOMAIN.

An example of the script is shown here:

<script>window.csApiKey = "YOUR_API_KEY"</script>
<script>window.csBaseDomain = "https://YOUR-SUBDOMAIN.pathfinderapi.com /"</script>
<script src="https://YOUR-SUBDOMAIN.pathfinderapi.com/js/script.js"></script>

The JavaScript code can then be pasted into the HTML source code of the website intended to track visitors. Once installed, you can track the JavaScript tracking snippet’s status from the same screen by clicking on “check status”

It's important to ensure that the code snippet is inserted into the <body> of the html, just before the </body> tag on the pages you want us to watch, like in the example below:

<html>
   <head>
      …
   </head>
   <body>
      …
      <script>window.csApiKey = "YOUR_API_KEY"</script>
      <script>window.csBaseDomain = "https://YOUR-SUBDOMAIN.pathfinderapi.com /"</script>
      <script src="https://YOUR-SUBDOMAIN.pathfinderapi.com/js/script.js"></script>
   </body>
</html>
Did this answer your question?