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

Passing discounts to GA #34

@refueledinc

Description

@refueledinc

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();
    

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions