Set Up Stand-Alone Discount Code Tracking Pixel

*Read First: these instructions are to implement a stand-alone discount code tracking pixel.  If you are looking for full link attribution tracking along with order/discount tracking click here.

---

If you're not utlizing one of our supported eCommerce integrations (ie: Shopify), this Discount Code Tracking Pixel is a way for your brand to track discount code use as orders are completed on your eCommerce store.  For every ambassador that shares their unique discount codes, you will be able to track the number of sales that were referred per person.

Generate an Access Token

You need to first generate a "Sales Attribution" access token to be included in the Wooly pixel URL parameters.  Go to your brand settings to create a new token.

Add The Tracking Pixel

To add the tracking pixel to your store you'll need to add the following HTML snippet on your order confirmation page.  The minimum required query parameters are: accessToken, orderId, discountCodes

<img src="https://api.wooly.com/pixel/order?accessToken=ACCESS_TOKEN&orderId=ORDER_ID&discountCodes=DISCOUNT1" />

Note: be sure to replace the {ACCESS_TOKEN} placeholder with your token. And on your order confirmation page you will need to code logic to get the orderId and discount code(s) used in the purchase order to be included in the Wooly pixel URL query parameters.

Optional Query Parameters

You can also add optional query parameters for better tracking:

&firstName=
&lastName=
&email= when provided we will auto create the contact in your CRM with the new order. This is recommended to associate sales referrals on an individual level. Super cool!
&currency= recommended for global business
&totalPrice=

When multiple discount codes are used, you can send the "discountCodes" query parameter multiple times.  See a full example below of all supported parameters:

<img src='https://api.wooly.com/pixel/order?accessToken=ACCESS_TOKEN&email=example@email.com&orderId=5642165&firstName=James&lastName=Davis&currency=USD&totalPrice=54.99&discountCodes=wintersale&discountCodes=december20off' />
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us