Skip to Content
This is our docs site, visit our main website at strut.fit 
Data IntegrationsTracking Pixel

Tracking Pixel

The tracking pixel is a small script that is placed on the checkout page. It is used to track conversions and collect StrutFit usage data.

Integrating the Tracking Pixel

Go to the page where the sale is converted, usually on the checkout page. Here is where you will place the tracking pixel code. Once a sale is confirmed we want to be able to send that information to StrutFit. Place the code only on this page.

<div id="strutfit-pixel-container"></div> <script type="text/javascript" src="https://pixel.strut.fit"></script> <script> var sfDivId = 'strutfit-pixel-container'; var organizationUnitId = {{OragnizationUnitId}}; // MOCK DATA -- Replace these with real values var orderReference = '#6001'; var orderValue = 99.99; var currencyCode = 'USD'; var items = [ { sku: "123-42", productIdentifier: {{ProductIdentifier}}, price: 99.99, quantity: 1, size: "43 EU" } ]; // Optional parameters var region = 'US'; var userEmail = 'test@gmail.com'; var fireSFPixel = function loadStrutFitPixelCall() { if (typeof fireStrutFitPixel === "function") { fireStrutFitPixel({ divId: sfDivId, strutFitData: getStrutFitData(), organizationUnitId: organizationUnitId, orderRef: orderReference, orderValue: orderValue, items: items, currencyCode: currencyCode, userEmail: userEmail, region: region, }); return; }; setTimeout(function () { fireSFPixel(); }, 1000); }; fireSFPixel(); </script>

You may also pass the size unit separately in the items array like this:

var items = [ { sku: "123-42", productIdentifier: {{ProductIdentifier}}, price: 99.99, quantity: 1, size: "43", sizeUnit: "EU" } ];

Required Parameters

  • orderReference: Must be set to the variable on your page that contains the order reference.
  • orderValue: Must be set to the variable on your page that contains the order value.
  • currencyCode: Must be set to the variable on your page that contains the order currency code.
  • items: Must be set to the object/array of items the user purchased, with the item properties shown in the example above.
  • items[].productIdentifier: Must match the same productIdentifier used when integrating the button.
  • organizationUnitId: Must be set to your OrganizationUnitId value, which can be found in the StrutFit dashboard or provided by your account manager.

Optional Parameters

  • userEmail: Should be the current email of the person placing the order. StrutFit does not store user emails; the email is hashed on the frontend before being sent to the API, so no personally identifiable information is received. This hash is used to link multiple orders from the same person to improve size suggestions and support digital marketing services. If you do not want to pass the email, set it to null or omit it from the function call.
  • region: Optional string representing the order region. You can set this to any string and then filter orders by region in the dashboard. If you do not serve multiple regions, or do not need this datapoint, set it to null or omit it from the function call.
Last updated on