Created
July 5, 2012 05:18
-
-
Save scottcorgan/3051501 to your computer and use it in GitHub Desktop.
AvantLink Tracking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// We need to track orders AND items | |
// | |
var _AvantMetrics = _AvantMetrics || []; | |
_AvantMetrics.push(['order',{ order_id:'[ORDER_ID]', amount:'[ORDER_AMOUNT]', state:'[BILLING_STATE]', country:'[BILLING_COUNTRY]' }]); | |
_AvantMetrics.push(['item',{ order_id:'[ORDER_ID]', parent_sku:'[ITEM_PARENT_SKU]', variant_sku:'[ITEM_VARIANT_SKU]', price:'[ITEM_PRICE]', qty:'[ITEM_QUANTITY]' }]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment