googleanalyticsplus icon indicating copy to clipboard operation
googleanalyticsplus copied to clipboard

Passing discounts to GA

Open refueledinc opened this issue 10 years ago • 2 comments

This is a continuance of closed issue: https://github.com/fooman/googleanalyticsplus/issues/30

I see two possible ways to pass discount/reward data to GA:

  1. Use something like _setCustomVar to track discount values. If it would work, it's not an ideal solution, but it's better than not having the data at all.

  2. From this book http://books.google.com/books/about/Google_Analytics.html?id=pxEurXaugqcC here is another possible solution to track discounts.

    Here's a little-known fact about the Google Analytics Ecommerce Tracking 
    Module, which we cover in great detail in Chapter 8: you can track your coupons 
    or discount vouchers with Google Analytics! What you’ll want to do is use a new 
    _addItem line and a negative value for your unit price field. This will 
    tabulate properly in your overall revenue and product revenue totals, which in a 
    way enables you to balance your e-commerce revenue data to be more realistic. 
    You’ll also be able to see the number of vouchers redeemed or the number of 
    coupons used in your Product Performance reports.
    
    The only drawback to this method is that adding a new _addItem line will 
    add to the total number of products sold, which, depending on your individual 
    needs, could cause some confusion. Therefore, consider this method carefully 
    before implementing it. Our recommendation: use this method anyway—the 
    pros of tracking coupons far outweigh the cons of increasing the total number 
    of products sold.
    
    Here is an example of an additional _addItem line being used by the 
    E-commerce module to track a coupon for $25 off:
    pageTracker._addItem(
    “135792468”,
    “ABC-123-XYZ0987”,
    “Coupon - 25 Dollars Off”,
    “Discounts”,
    “-25.00”,
    “1”
    );
    pageTracker._trackTrans();
    

refueledinc avatar May 07 '14 10:05 refueledinc

At about 37:20 they talk about ways to track discounts in GA: http://online-behavior.com/googleanalytics/tracking-ecommerce

refueledinc avatar May 09 '14 13:05 refueledinc

This is all supported in the enhanced ecommerce feature of GA. I would support that instead of the old Classic hack methods.

mykehsd avatar Jun 25 '14 23:06 mykehsd