Hey Everyone!!
I'm just setting up my store www.baselinesoftware.com on shopzilla and other comparison shopping sites, and I need some help getting this tracker working correctly. Here is what shopzilla says:
Code Integration
It's easy to add the Shopzilla Performance Tracker to your website, just follow these steps:
1. Copy the code in the box below.
2. Paste the code anywhere on your store's receipt page. The receipt page appears after an order is completed, so the Shopzilla Performance Tracker will not interfere with your store's checkout process.
3. Populate the values in the code. For more information on populating the values in the code, please continue reading after the box.
Tracker Code
<script language="javascript">
<!--
/* Performance Tracking Data */
var mid = '******';
var cust_type = '';
var order_value = '';
var order_id = '';
var units_ordered = '';
//-->
</script>
<script language="javascript" src="https://www.shopzilla.com/css/roi_tracker.js"></script>
The Performance Tracker code allows you to pass five data points back to Shopzilla:
* Your Shopzilla Merchant ID (required)
* The Order Value (strongly recommended)
* The Order ID (recommended)
* Whether the customer is new or repeat (recommended)
* The Number of Units Ordered (optional)
Your Shopzilla Merchant ID has already been added to the code above and does not change. The remaining four values are dynamic and must be populated by code on your site. Your IT department should be able to easily write a script to populate these four variables.
Name: Shopzilla Merchant ID (var MID)
Purpose: Allows Shopzilla to correctly identify the order activity with Baseline Software.
Value to Enter: Your MID is ****** and has been added to the code. DO NOT ALTER the "var mid" value in the code above.
Benefits: Your Merchant ID allows Shopzilla to correctly identify the order activity with Baseline Software.
Name: Order Value (var order_value)
Purpose: Specifies dollar value of an order.
Value to Enter: The total amount of the order without formatting. If the order value is $1,200.38, then populate the "var order_value" with '1200.38'. Do not include dollar signs or commas.
Benefits: Passing Order Value allows you to view Sales Revenue, Average Order Value, and Cost of Sale for Shopzilla-generated sales. This information is necessary to determine which products are driving sales at your store.
Name: Order ID (var order_id)
Purpose: Specifies merchant order identification number associated with an order.
Value to Enter: The unique tracking number associated with an order. It can be numbers, letters, or both.
Benefits:
The Order ID will help should any troubleshooting needs arise but will not be visible in your Shopzilla Performance Report.
Name: Customer Type (var cust_type)
Purpose: Specifies whether the order is from a New or Repeat customer.
Value to Enter:
For a new customer, populate the var cust_type with '1'. For a repeat customer, populate the var cust_type with '0'.
Only a 1 or a 0 is accepted in this field!
For an easy way to tell if a customer is new or repeat, check to see if the customer's email address already exists in your database.
Benefits: Passing Customer Type will allow you to see how many new customers were generated from your Shopzilla campaign and to determine the cost per new customer acquisition.
Name: Units Ordered (var units_ordered)
Purpose: Specifies the number of units of merchandise associated with an order.
Value to Enter: Enter the number of units of merchandise that make up the order. For example, if someone orders a sweater, a shirt and a hat, the units ordered would be 3.
Benefits: This value assists you when performing order value analysis.
You may choose to add the code in the above box "as is" and pass only the Merchant ID, but this will only provide conversion information. We strongly recommend including at least the order value ("var_order_value") so that you can determine your cost of sale. You need to know your cost of sale in order to manage and optimize your campaign effectively.
Performance Tracker Script Example
The code sample below illustrates how the Shopzilla Performance Tracker Script might look after populating all the eligible fields with relevant data from an order. After integrating the Performance Tracker, you should see a similar piece of code when viewing the source code of your receipt page:
<script language="javascript">
<!--
/* Performance Tracking Data */
var mid = '204008';
var cust_type = '1';
var order_value = '1349.18';
var order_id = '928641';
var units_ordered = '3';
//-->
</script>
<script language="javascript" src="https://www.shopzilla.com/css/roi_tracker.js"></script>
In the example above:
* MID (Merchant ID) is 204008 (this is your Shopzilla MID; never alter this MID!)
* The order value is $1,349.18.
* The order id is 928641
* The order was from a new customer (represented by 1 in the var cust_type field)
* The number of units ordered is 3.
Does anybody have any idea how I would go about doing this?
Bookmarks