Google Conversion Room Blog Tips on tracking and improving conversions online

Google Analytics reporting for multilingual e-commerce stores - Part 2

Monday 8 March 2010 | 17:07

Labels:

Today we're sharing the second in a series of posts showing you different ways to achieve a similar reporting structure for activities across multiple regions and languages for e-commerce websites.

Method 2: Multiple profiles, multiple domains and a single payment gateway

What happens if you wish to keep reporting for each store separate? How do you track the performance of each store in a different profile when you have a single payment gateway domain?

example multi-store site set up


Note: Our payment gateway uses a sub-directory structure for each corresponding domain. This allows us to install a different Google Analytics tracking code under each sub-directory.

Step 1) Recommended Google Analytics tracking code configuration

  1. Create a profile in Google Analytics for a new domain for each domain you wish to track
  2. Use a different tracking code number (UA-XXXXX-Y) for all domains, and customise it to track visits across domains as follows:

Code for all pages in example.com and any subdomains of example.com:

<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-XXXXX-1");
pageTracker._setDomainName(".example.com");
pageTracker._setAllowLinker(true);
pageTracker._setAllowHash(false);
pageTracker._trackPageview();
} catch(err) {}
</script>

Code for all pages in example.es and any subdomains of example.es:

<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-XXXXX-2");
pageTracker._setDomainName(".example.es");
pageTracker._setAllowLinker(true);
pageTracker._setAllowHash(false);
pageTracker._trackPageview();
} catch(err) {}
</script>

Code for all pages in example.fr and any subdomains of example.fr:

<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-XXXXX-3");
pageTracker._setDomainName(".example.fr");
pageTracker._setAllowLinker(true);
pageTracker._setAllowHash(false);
pageTracker._trackPageview();
} catch(err) {}
</script>

Code for all pages in example.co.uk and any subdomains of example.co.uk:

<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-XXXXX-4");
pageTracker._setDomainName(".example.co.uk");
pageTracker._setAllowLinker(true);
pageTracker._setAllowHash(false);
pageTracker._trackPageview();
} catch(err) {}
</script>

Code for all pages in example-payment.com and sub directories:


<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-XXXXX-Y");
pageTracker._setDomainName(".example-payment.com");
pageTracker._setAllowLinker(true);
pageTracker._setAllowHash(false);
pageTracker._trackPageview();
} catch(err) {}
</script>


Note: For each sub-directory on example-payment.com. You will need to change the UA-XXXXX-Y number to correspond to the correct Analytics account. See diagram example multi-store site set up.

Advanced users may wish to use the _setCookiePath() method to prevent cookie information being shared on example-payment.com

Step 2) Call _link() or _linkByPost() in all links and forms between each domain. As per the instructions under step 3.

Step 3) Configure Goal / Funnel Reports

Example: Spain (es) Checkout Complete




Description
URL
Name
Goal
/es/thank-you
Spain Checkout Complete
step 1
/add-to-cart
Add to Cart
step 2
/shipping
Shipping details
step 3
/es/payment
Payment

Repeat step 3 for each profile that needs a Goal Funnel report.

Step 4) Go to your Goal -> Funnel Visualisation report it should look something like this:



In our next post, we'll discuss a third method to achieve a similar reporting overview.

Posted By Gavin Doolan, Google Analytics Team

2 comments:

Robert Kingston said...

Hi Gavin,

Is there any way of filtering ecommerce data based on hostname? After some research, it looks like filtering out ecommerce data requires prepending data onto the transaction ID in the GA script and then excluding any transaction IDs that match that.

Gavin said...

Hi Robert,
The way filters work is they filter certain hit types only. If you look at this page:
http://code.google.com/apis/analytics/docs/concepts/gaConceptsOverview.html#gifRequestClassification

You'll see that E-commerce hit types are broken into 2. Item and Transaction.

1 problem with E-commerce hits is that they are not associated with a particular domain, so you can't use a hostname filter.

Instead what you need to do is filter based on a field / parameter that is present in both Item and Transaction hit types.

That parameter / value is the order / transaction ID.

If your transaction ID for Spain was ES 1234 and you also had a transaction for France FR 1234 you could add an E-commerce transaction ID filter with the patter ^ES for Spanish profile and ^FR for French Profile.

So you'll need some method of prefixing the order ID with the country domain.

Hope that helps.