Created
April 27, 2010 10:47
-
-
Save etianen/380611 to your computer and use it in GitHub Desktop.
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
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', 'UA-XXXXX-X']); | |
_gaq.push(['_trackPageview']); | |
_gaq.push(['_addTrans', | |
'1234', // order ID - required | |
'Acme Clothing', // affiliation or store name | |
'11.99', // total - required | |
'1.29', // tax | |
'5', // shipping | |
'San Jose', // city | |
'California', // state or province | |
'USA' // country | |
]); | |
_gaq.push(['_addItem', | |
'1234', // order ID - required | |
'DD44', // SKU/code | |
'T-Shirt', // product name | |
'Green Medium', // category or variation | |
'11.99', // unit price - required | |
'1' // quantity - required | |
]); | |
_gaq.push(['_trackTrans']); //submits transaction to the Analytics servers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment