Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Currently trying to set up GA ecommerce tracking for a shopping cart providing different pricing and tax to multiple countries. Does anyone know how to extract the tax amount from the order total for google ecommerce for multiple countries? i.e. set GA ecomm up to service/ return data for different countries?

share|improve this question
I'm not adding this as an answer, since your question is too broad to give a detailed answer... With "_gaq.push(['_addTrans','Order-id','Store-name','Total-price','TAX-price','shipp‌​ing-price','City','State','Country']);" you can pretty much add anything to add to your ecommerce tracking. Google however will not calculate anything for you depending on where the customer is located. You need to pass that to Google yourself and add the correct tax-value to the addTrans-Function. See developers.google.com/analytics/devguides/collection/gajs/… – uberconversion Jul 20 '12 at 11:25

Why not setup custom variables and use them on the order thank you page so that you can send appropriate information to Google Analytics based on the order location


If your bank account is in the US and your website simply has a currency converter there's no need to bother with different currencies. But taxes if you charge VAT for UK residents and NYS tax for New York residents why not setup a custom variable? I still don't see why just posting the tax information wouldn't be sufficient though? If the tax amount of the total is a % does it matter which country it was for? And wouldn't you still be able to filter or sort orders by country and see tax info in your cart, excel, or even a custom report in GA?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.