var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-17514025-1']); _gaq.push(['_setDomainName', 'bcn.travel']); _gaq.push(['_trackPageview']); _gaq.push(['_addTrans', '[trans_num]', // order ID - required '', // affiliation or store name '[order_total]', // total - required '$tax_calc', // tax '0', // shipping '[city]', // city '[state]', // state or province '[country]' // country ]);
_gaq.push(['_addItem', '[trans_num]', // order ID - required '[sku]', // SKU/code - required '[$this_tour_name]', // Product Name '[$this_item_name]', // category '[$overall_total]', // unit price - required '1' // quantity - required ]);
_gaq.push(['_trackTrans']); //submits transaction to the Analytics servers
(function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();