1. Home
  2. How to Set Up Website Tracking

How to Set Up Website Tracking

Currently in Controlled Availability. Contact your CSM for more information on accessing this feature.

Overview

PathFactory’s Website Tracking allows you to track pages from your website and automatically incorporate these pages into the Recommendation Engine, generating contextual recommendations in both the new Guide and Concierge web promoters.

Warning
Website tracking must be enabled for the website domain in order to run Guide and/or Concierge website promoters.

Check out the Website Tools FAQ here!


Step 1: Add Website Domain to PathFactory

Warning
You must be an Administrator in your PathFactory instance to perform the following setup.
  1. Click your username in the top right corner, then select Organization Settings from the drop-down menu.
    imageOrganization Settings menu item

  2. Select the Website Domains tab.
    imageWebsite Domains tab

  3. Click the + Domain button to add your website domain.
    Note
    Valid domain formats can include http://website.com, https://website.com, subdomain.website.com

    imageAdd Domain button


Step 2: Add PathFactory Tracking Script to your Website

  1. Click Copy Tracking Script.
    imageCopy Tracking Script button

  2. Click Copy HTML, and provide this code to your website administrator.
    Note
    The website administration must place the jukebox tracking scripts on website pages where Guide is to be present and/or for web pages that are to be used for the Recommendation service (can be done via a tag manager as well).

    imageTracking script example

Additional information about adding the PathFactory script to your website

  • By default the Jukebox tracking script will drop a persistent cookie on a website. For GDPR compliance, we allow a cookie consent capability that will use session cookies (instead of persistent cookies) and gather anonymous visitor data only, and does not de-anonymize visitors.
  • Your website administrator will be able to take a PathFactory JS function – setPfConsent() and pfConsentStatus() that can be executed by a third party cookie consent tool anywhere on the site to allow persistent tracking for de-anonymization of known visitors.
  • We recommend adding an event listener “pf_jukebox_loaded” that validates that PathFactory tracking script has loaded before it executes the PathFactory consent functions (that would be used by a third party consent tool).

Example:

<script< span=""> type="text/javascript">    window.addEventListener("pf_jukebox_loaded", function() {        var head = document.getElementsByTagName('head')[0];        var script = document.createElement('script');        script.type = 'text/javascript';        script.id = 'Cookiebot';        script.src = 'https://consent.cookiebot.com/uc.js?cbid=XXXXXXXXX';        head.appendChild(script);    });  <script< span=""> type="text/plain" data-cookieconsent="marketing">    if(pfConsentStatus()!=true){ 		pfCookieResponse(true);    } </script<></script<>

Step 3: Enable PathFactory Website Tracking

Note
This step must be done after the PathFactory jukebox scripts have been added to your website.
  1. Return to the Website Domains tab in Organization Settings.
  2. Hover over the domain you added previously, and click the pencil icon to open editing mode.
    image
  3. Click the toggle below Enabled to turn on website tracking for the selected domain. Click Update.
    image
  4. Navigate to Website Tools.
    image
  5. Add the URL patterns you wish to track. To add a New URL or URL pattern click on + Promoter, then add the URL you wish to track. You may use an asterisk (*) wildcard to track site wide or to define a range of pages in a sub-directory.
    image

    Note: you can track webpages or URL patterns without enabling Guide or Concierge, simply Enable the URL or URL pattern and disable Guide and Concierge.
    image


Setup Checklist

  • Identify which website domains will have PathFactory tracking scripts
  • Configure the website domains in PathFactory for tracking
  • Add the PathFactory website tracking scripts to your website
  • Add PathFactory consent functions for anonymous tracking (if needed) to your website consent manager
Warning
Website Tracking data will appear in reports within Website Tools, but do not presently appear in Path Analytics. Website Tracking data will however appear in Webhooks and within PathFactory for Sales.
Updated on April 14, 2023

Was this article helpful?

Need Support?
Can't find the answer you're looking for? Don't worry we're here to help!
CONTACT SUPPORT