How to Insert Answerbase Ecommerce Conversion Tracking Code
Answerbase's goal is to ensure that you get a very healthy return on your investment for the platform, and in order to do that it's best to track the results and how much revenue your Answerbase engagement is assisting in. To track this we need you to place our conversion tracking code into your site at the end of the customer journey, after the event that you've determined that the customer has accomplished the end goal and you can attribute value to that goal Most times this will be after an ecommerce order is placed, but can also be used when a lead generation form is submitted or other valuable interactions.
You can find your ecommerce tracking code in your administration site under:
Integration > Conversion Tracking
You'll see the tracking code that you need to insert into your order confirmation page, similar to this:
<img src=".../api/v2/tracking/conversion?sale_total=<AMOUNT>&email=<EMAIL>&sku=<SKU>&price=<PRIC
E>" height="1" width="1" />
Notice that there are a couple variables that you need to pass into the tracking code when your confirmation page loads:
As mentioned in the above bullet points, if multiple products are associated with an order you can add the parameters multile times to cover each of the SKUs that were ordered. Here is an example of what that would look like.
<img src=".../api/v2/tracking/conversion?sale_total=<AMOUNT>&email=<EMAIL>&sku=<SKU1-SKU>&sku=<S
KU2-SKU>&price=<SKU1-PRICE>&price=<SKU2-PRICE>" height="1" width="1" />
You should test an order and view the source code of your confirmation page, to ensure that the parameters have been passed in the Answerbase tracking script appropriately. Our goal is to ensure that Answerbase is giving you a very healthy return on investment so you should see that in your conversion reports. If you're not seeing results that you'd like to see, please contact Answebase Support and we can look to assist you in order to ensure you've configured your Answerbase to see the results you're looking for.
You can find your ecommerce tracking code in your administration site under:
Integration > Conversion Tracking
You'll see the tracking code that you need to insert into your order confirmation page, similar to this:
<img src=".../api/v2/tracking/conversion?sale_total=<AMOUNT>&email=<EMAIL>&sku=<SKU>&price=<PRIC
E>" height="1" width="1" />
Notice that there are a couple variables that you need to pass into the tracking code when your confirmation page loads:
- Sale Total: Replace the <AMOUNT> value with the total currency value of the sale that was just submitted.
- Email: Replace the <EMAIL> with the email of the user who just placed the order .
- Sku: Replace the <SKU> value with the sku (or skus) that were part of the order. If there was more than one Sku, you can add additional Sku values by adding the parameter a second time with the second Sku value.
- Product ID: Replace the <ID> value with the unique ID that your platform has identified for the product. If there was more than one ID, you can add additional ID values by adding the parameter a second time with the second ID value.
- Price: Replace the <PRICE> value with the prices of the Sku (or skus) that were part of the order. If more than one Sku was ordered, you can add additional Sku price values by adding the "Price" parameter a second time with the second Sku price value, just make sure that the price parameters are in the same order as the skus represented in the "SKU" parameter noted above.
As mentioned in the above bullet points, if multiple products are associated with an order you can add the parameters multile times to cover each of the SKUs that were ordered. Here is an example of what that would look like.
<img src=".../api/v2/tracking/conversion?sale_total=<AMOUNT>&email=<EMAIL>&sku=<SKU1-SKU>&sku=<S
KU2-SKU>&price=<SKU1-PRICE>&price=<SKU2-PRICE>" height="1" width="1" />
You should test an order and view the source code of your confirmation page, to ensure that the parameters have been passed in the Answerbase tracking script appropriately. Our goal is to ensure that Answerbase is giving you a very healthy return on investment so you should see that in your conversion reports. If you're not seeing results that you'd like to see, please contact Answebase Support and we can look to assist you in order to ensure you've configured your Answerbase to see the results you're looking for.