Installing Tracking Tag in BigCommerce

If you use BigCommerce to host your online store, you'll need to correctly install the Perfect Audience site tracking tag and conversion code into your BigCommerce Settings.

1. Installing the Tag

In your "Manage" menu 
click User Tracking.

This will pull up a page with a javascript tag that looks like this. Copy this code.



Switch to your BigComerce dashboard.
Click Design.

Click Edit HTML/CSS.

In the window labeled "Files used by this template:" scroll down and select Footer.html.

Scroll to the bottom of the code.
Paste the site tracking tag at the bottom of this page.

In the upper left corner, press Save.  

Additional Tracking (Optional)


Dynamic Product Retargeting:

If you plan to use dynamic ads with your BigCommerce store, you'll need to modify the line of code beginning with "_pa.productId" in the site tracking tag. Remove the // and modify this line to look like this:


_pa.productId = "%%GLOBAL_ProductId%%";

Note: If you are using Dynamic Retargeting with BigCommerce, our tracking tag needs to be installed within the Snippet file "ProductAddtoCart.html" - or it needs to appear after that snippet has been called.

Order ID Tracking:
BigCommerce provides a variable for the Order ID of a specific order. Using this Order ID with your Perfect Audience conversions can help you match up the conversions tracked in your Perfect Audience account with orders through your BigCommerce store. To track an Order ID with your conversion goals, change the line of code beginning with "_pa.orderId" in the site tracking tag. Remove the // and modify this line to look like this:

_pa.productId = "%%ORDER_ID%%";

Revenue Tracking:
If you wish to track sales amounts with your conversion goal, you can do this by modifying the line beginning with "_pa.revenue" in the site tracking tag. Remove the // in this line and modify this line using one of the following:
  • %%ORDER_AMOUNT%% - The order total using dollars and cents
  • %%ORDER_AMOUNT_IN_CENTS%% - The order total using cents only
  • %%ORDER_SUBTOTAL%% - The order subtotal using dollars and cents
  • %%ORDER_SUBTOTAL_IN_CENTS%% - The order subtotal using cents only
  • %%ORDER_SUBTOTAL_DISCOUNTED%% - The order subtotal using dollars and cents, minus any discounts or coupon codes
  • %%ORDER_SUBTOTAL_DISCOUNTED_IN_CENTS%% - The order subtotal using cents only, minus any discounts or coupon codes
For example, if you wanted to use the order subtotal as your conversion goal revenue amount, that line of code should look like this:

_pa.revenue = "%%ORDER_SUBTOTAL%%";

Wait for the e-mail! Now that your tag is on your BigCommerce store, you will receive an e-mail when our system starts seeing data. You can also check back to the Site Tracking Tag page to see if data is being recived. This usually takes an hour or two. If you don't get an e-mail or see data on your tag page or Audiences page, double check that you've placed the tag in your web site code and pushed that code live. It can be easy to forget a simple step in there along the way.

If you have any problems, email support@perfectaudience.com

Feedback and Knowledge Base