UTT Installation
Installation
Step 1: Universal Tracking Tag (UTT)
Your impact.com account has a unique Universal Tracking Tag specific to your account, which needs to be placed within the global <head> tag of your site.
Obtain the UTT code snippet by selecting Menu → Settings from the left navigation bar.
Under Tracking, select General and copy the UTT code snippet.
Place this snippet within the global
<head></head>HTML element of your site. If you use a tag manager, add the UTT as a custom HTML tag.
identify function
The identify function is used to identify users accurately across your site, particularly across devices. You'll supply identifiers so impact.com can map them to conversion events for attribution.
Copy the entire code snippet from this document, then modify the snippet's values (bulleted below) with dynamic variables:
<script>
ire('identify', {
customerId: 'Customer Id',
customerEmail: 'SHA1 Hash of Customer Email'
});
</script>customerId: a visitor's unique identifier that maps to your site's backend systems.customerEmail: A SHA-1 hash of a visitor's email address.If either of these values are unknown, pass an empty string.
Add your modified code snippet in the body section of each page on your website, or use a tag manager to add this code snippet in the body section of each HTML element across your site.
trackConversion function
The trackConversion function is used on your site’s order confirmation page to track the conversion data of an online sale and report it to impact.com.
Copy the entire code snippet from this document. Modify the snippet's values (tabled below) with dynamic variables (all variables are required):
<script>
ire('trackConversion', ACTIONTRACKERID, {
orderId: "Your Order Id here",
customProfileId: "Your Custom Profile Id here",
customerId: "Your Customer Id here",
customerEmail: "SHA1 Hash of Customer Email",
customerStatus: "New or Existing",
currencyCode: "USD",
orderPromoCode: "Your Promo Code here",
items: [
{
subTotal: 100.00,
category: "Category here",
sku: "SKU here",
quantity: 2,
name: "Product Name here"
},
{
subTotal: 50.00,
category: "Category here",
sku: "SKU here",
quantity: 1,
name: "Product Name here"
}
]
}, { verifySiteDefinitionMatch: true });
</script>Add your modified code snippet at the top of the <body> HTML element of the order confirmation page of your site, or use a tag manager to add this code snippet to the top of each <body> HTML element across your site.
trackConversion parameter definitions
The table below lists a range of supported parameters that the trackConversion function supports. Parameters should be passed a value from your site using dynamic variables when a conversion occurs.
orderId
Unique order identifier your platform assigns to orders.
ALPHANUMERIC(64)
customProfileId
Unique identifier used to identify visitors on your website regardless of whether they're signed in.
STRING(70)
customerId
Unique customer identifier your platform assigns to customer accounts. Do not use personally identifiable data for this field. Pass an empty string if unavailable.
STRING(255)
customerEmail
SHA-1 hash of the customer's email address. Pass an empty string if unavailable.
STRING(255)
customerStatus
Submit values of either New or Existing. Can be configured to alter payouts.
ALPHANUMERIC(40)
currencyCode
Three-letter ISO 4217 code for the currency of your platform.
STRING(3)
orderPromoCode
Promotional (or coupon) code applied to the order. Pass an empty string if unavailable.
STRING(64)
orderDiscount
Total discount amount on the order. This will be subtracted proportionally from the item-level subtotals when revenue values are calculated by impact.com.
DECIMAL(8,2)
subTotal
SKU set subtotal of the line item (pre-tax, pre-shipping, pre-discount).
DECIMAL(8,2)
category
Item category identifier. Can be configured to alter payouts.
STRING(64)
sku
Item stock-keeping unit (SKU) identifier.
ALPHANUMERIC(40)
quantity
Item quantity.
INTEGER
name
Item name.
STRING(128)
trackConversion example payload
See the example payload of a tracked conversion:
Notes
There are two (2) Footballs being purchased at a unit price of 14.00 which is a SKU set subtotal of 28.00.
There are also three (3) Men’s Jerseys being purchased at a unit price of 33.00 each for a SKU set subtotal of 99.00.
impact.com will take the 15.00 discount passed and apply that proportionately to all items in the purchase.
Once you have fully integrated the impact.com API, you can begin end-to-end testing to ensure everything is working properly. Learn how to proceed with End-to-End Testing.
Last updated

