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.
For a video overview of integrating this tracking code, you can watch the full video below. The video does start with a background on why the conversion tracking script is important and what we'll use it for, but if you want to skip straight to the instruction you can click here. Otherwise, you can view the full video here:
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:
Notice that there are a several 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 more than one value into the parameter and separate them by commas to cover each of the products that were ordered. Here is an example of what that would look like.
NOTE: You need to make sure that all the required parameters are filled out, but if you are not going to use some parameters then they should not be defined at all within the script.
Testing Your Integration
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. You can see detailed testing instructions below:
How to Test if Answerbase Conversion Tracking Code is Working
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 Answerbase 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.
Still using the old Answerbase conversion tracking pixel?
If you haven't updated your conversion tracking script from the old tracking pixel, you need to update that to the new script identified in this document. For reference, you can see a review of the old tracking pixel if needed, but that tracking pixel needs to be updated with the new script.
How Does Answerbase Report Back on Conversion Activity
The first step is to start tracking conversions and how they interact with engagement and the Q&A content, so getting the conversion tracking installed is the first step. From there, Answerbase will do it's best to leverage that connection in order to drive value. For more information you can read our overview of how Answerbase measures conversion assists.
Complete Your Ecommerce Q&A Setup
To get the full benefits of your Q&A content and engagement, please read through and complete all of our Steps for Integrating Answerbase Q&A into Your Ecommerce Store (click that text link to see the steps). Most steps are less than 5 minutes to complete, and completing them ensures that Answerbase can do it's job to provide you with measurable value.
For a video overview of integrating this tracking code, you can watch the full video below. The video does start with a background on why the conversion tracking script is important and what we'll use it for, but if you want to skip straight to the instruction you can click here. Otherwise, you can view the full video here:
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:
<script src="https://YOUR-ACCOUNT-VALUE.services.answerbase.com/javascript/widget/conversion-tracking.min.js"
data-sale_total="<AMOUNT>"
data-email="<EMAIL>"
data-sku="<SKU>"
data-productId="<ID>"
data-price="<PRICE>"></script>
Notice that there are a several variables that you need to pass into the tracking code when your confirmation page loads:
- data-sale_total (Required): This value is the total currency value of the sale that was just submitted. Looking at the above example, it would be replacing the <AMOUNT> value shown in that example script.
- data-email: This value is the email address of the user who just placed the order. Looking at the above example, it would be replacing the <EMAIL> value shown in that example script.
- data-productId: This value is the unique ID that your platform has identified for the product. Looking at the above example, it would be replacing the <ID> value shown in that example script. If there was more than one ID, you can simply add additional ID values and separate each ID with a comma.
- data-sku: This value is the the sku (or skus) that were part of the order. Looking at the above example, it would be replacing the <SKU> value shown in that example script. If there was more than one sku, you can simply add additional sku values and separate each sku with a comma.
- data-price: Replace the <PRICE> value with the prices of the product (or products) that were part of the order. If more than one product was ordered, you can simply add additional price values and separate each price with a comma.Just make sure that the price values are in the same order as the products represented in the "data-productId" parameter and other values noted above.
As mentioned in the above bullet points, if multiple products are associated with an order you can add more than one value into the parameter and separate them by commas to cover each of the products that were ordered. Here is an example of what that would look like.
<script src="https://YOUR-ACCOUNT-VALUE.services.answerbase.com/javascript/widget/conversion-tracking.min.js"
data-sale_total="<AMOUNT>"
data-email="<EMAIL>"
data-productId="<ID-1>,<ID-2>,<ID-3>"
data-sku="<SKU-1>,<SKU-2>,<SKU-3>"
data-price="<PRICE-1>,<PRICE-2>,<PRICE-3>"
>
</script>
NOTE: You need to make sure that all the required parameters are filled out, but if you are not going to use some parameters then they should not be defined at all within the script.
Testing Your Integration
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. You can see detailed testing instructions below:
How to Test if Answerbase Conversion Tracking Code is Working
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 Answerbase 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.
Still using the old Answerbase conversion tracking pixel?
If you haven't updated your conversion tracking script from the old tracking pixel, you need to update that to the new script identified in this document. For reference, you can see a review of the old tracking pixel if needed, but that tracking pixel needs to be updated with the new script.
How Does Answerbase Report Back on Conversion Activity
The first step is to start tracking conversions and how they interact with engagement and the Q&A content, so getting the conversion tracking installed is the first step. From there, Answerbase will do it's best to leverage that connection in order to drive value. For more information you can read our overview of how Answerbase measures conversion assists.
Complete Your Ecommerce Q&A Setup
To get the full benefits of your Q&A content and engagement, please read through and complete all of our Steps for Integrating Answerbase Q&A into Your Ecommerce Store (click that text link to see the steps). Most steps are less than 5 minutes to complete, and completing them ensures that Answerbase can do it's job to provide you with measurable value.