Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Passing discounts to GA #34

Open
refueledinc opened this issue May 7, 2014 · 2 comments
Open

Passing discounts to GA #34

refueledinc opened this issue May 7, 2014 · 2 comments

Comments

@refueledinc
Copy link

This is a continuance of closed issue: #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
Copy link
Author

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

@mykehsd
Copy link
Contributor

mykehsd commented Jun 25, 2014

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

@fooman fooman added this to the Unlikely for Magento 1 milestone Aug 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants