Product Link Tracking Pixel Installation

Article author
Matt Hanan
  • Updated

The purpose of this document is to provide instructions for installing your product link tracking pixel for the purpose of enabling the first-party tracking of product links shared by creators.

Installation

The installation of the tracking pixel is easy. The following javascript code should be placed on all of your product pages. Please note where it says “XXXXXXX”, this needs to be replaced with your account id, otherwise the tracking pixel will not work properly. Please contact your client success account manager if you do not have your account id.

<script type="text/javascript">

  (function() {

    var tvpa = document.createElement('script'); tvpa.type = 'text/javascript'; tvpa.async = true;

    tvpa.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://a.tvpage.com/tvpa.min.js';

    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tvpa, s);

  })();




  var _tvpa = _tvpa || [];

  _tvpa.push(['config', {

    li: "XXXXXXX", // Account ID

    mode: "dl"

  }]);

</script>

Once installed, this pixel will always load on your product page, if the URL of the product page contains a trackable product link variable, the analytics pixel will fire a subsequent request.

It is a best practice to use a tag manager to install this pixel as it makes the process of managing tracking pixels in general much easier.

After you have completed the installation, if you wish to validate that the pixel is working correctly, please contact our support team and provide us with a sample product page URL and we will verify the pixel is working as expected.