I added standard Google E-commerce code to my page. Everything works fine, just the Source/Medium value is just always my domain. How do I get the normal source, or set it?

In short, how do I get a reference to where people came to shop from?

Test script:

  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

  ga('create', 'UA-XXXXXXX-1', 'my-page.com');
  ga('send', 'pageview');

ga('require', 'ecommerce', 'ecommerce.js');

ga('ecommerce:addTransaction', {
  'id': '111,                     // Transaction ID. Required.
  'affiliation': 'Affiliation name',   // Affiliation or store name.
  'revenue': '3.29',               // Grand Total.
  'shipping': '1',                  // Shipping.
  'tax': '3.11'                    // Tax.

ga('ecommerce:addItem', {
  'id': '111',                     // Transaction ID. Required.
  'name': 'Prod1',    // Product name. Required.
  'sku': 'SKU00011',                 // SKU/code.
  'category': 'Prod category',         // Category or variation.
  'price': '155.21',                 // Unit price.
  'quantity': '1'                   // Quantity.


What i need get: enter image description here

  • Can you post the tracking script you've used and the ecommerce tracking you have implemented in your site? And perhaps a screenshot to exactly what you're looking at in GA please? It sounds like incorrect implementation that could be causing this. Thanks.
    – zigojacko
    Jun 11, 2013 at 8:21
  • Hi,i add my test scrip. I hope now it will be clear
    – lolalola
    Jun 11, 2013 at 21:11

1 Answer 1


As per your screenshot, this is how the source / medium is supposed to work. Source being the domain source the visitor came via and medium being the type of visit (referral, organic, cpc, direct etc)...

If you wish to see the exact page that led to the conversion, then you'd need to add a secondary dimension such as landing page which would then show the landing page they entered into your website on. If you wish to see everything they did from entrance to conversion, then set up goals and list each qualified step so that you can break down in analytics throughout your site's sales funnel.

About traffic sources.

You can set up custom campaigns to use custom URL tagging modifying the default source/medium but it's not the most practical method if you just want to know the previous page a visitor was on prior to converting on your site regardless of traffic source.

Hope that makes sense?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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