Custom Integration and Custom Code for not tracking orders in your Salesfire Dashboard.

Our Google Tag Manger integration (see separate article) is one of the ways you can integrate Salesfire on your bespoke website, however we appreciate not all clients use GTM.

In this article, we'll show you another manual method of integrating us on a bespoke platform:


Paste the following code after your <head> tag.

<script async src="[YOUR SITE ID].js"></script>

You can get your Site ID from within the Salesfire Dashboard under Preferences.

Tracking Orders

In most cases, we are able to automatically detect orders if you are using Google Analytics on your order success page. However, in some instances, we are not able to see this data so are unable to track orders immediately. To help support with tracking we have the below example code to be added to the checkout success page of your website.

PLEASE NOTE: When adding the code to the site, you need to strip out the example data we provide, replacing it with the platform's dynamic values. Without this we will be unable to track the individual orders and items within them.

window.sfDataLayer = window.sfDataLayer || [];
"ecommerce" : {
"purchase": {
"id": "WEB1234",
"revenue": 75.00,
"shipping": 5.00
"tax": 15.00,
"currency": "GBP",
"sku": "220165",
"parent_sku": "220164",
"name": "Product Title",
"variant": "Colour: Red, Size: Small",
"price": 25.00,
"quantity": 1,
"currency": "GBP"
"sku": "220166",
"parent_sku": "220164",
"name": "Product Title",
"variant": "Colour: Red, Size: Large",
"price": 25.00,
"quantity": 2,
"currency": "GBP",
"position": 1

Field definitions:


  • id - (required) - the unique ID of the transaction. We deduplicate base upon this ID.
  • revenue - (required) - the revenue generated by this order. You can include or exclude shipping and tax, this figure is what is reflected within Salesfire.
  • currency - (recommended) - the currency of this order. Defaults to GBP.
  • products - (recommended) - an array of products. See Product below.

We also support the following but are optional:

  • shipping - (optional) - the cost of shipping.
  • tax - (optional) - the cost of tax.
  • coupon - (optional) - what coupon or discount code was applied to this order. If multiple, use a comma separated list.
  • city - (optional) - the city of the customer.
  • state - (optional) - the state, county or region of the customer.
  • country - (optional) - the 2 letter code representing the country of the customer.


  • sku - (required) - this is the product variant ID or SKU. For example, the ID of the blue variant of a t-shirt.
  • parent_sku - (required) - this is the product ID. For example, the ID of a t-shirt product.
  • name - (recommended) - the name of the product.
  • variant - (recommended) - the name of the variant.
  • price - (recommended) - the price of the product excluding tax
  • currency - (recommended) - the currency of the product's price

Please ensure sku and parent_sku match the IDs used in your product feed is you are an Enterprise customer.

We also support the following but are optional:

  • brand - (optional) - the name of the brand
  • category - (optional) - a comma separated list of categories. Nested categories should be denoted by a >.