Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Records shop sales sales in google analytics.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 code
Octocat-spinner-32 README.md
Octocat-spinner-32 _config.php
README.md

Ecommerce Google Analytics Tracking

Setup

Enable ecommerce tracking in your google analytics profile settings for the site you want to track on.

Add the following configuration to your _config.php file:

EcommerceGoogleAnaltyics::set_account_id("UA-XXXXXXX-X");

Google documentation links:

http://code.google.com/apis/analytics/docs/tracking/gaTrackingEcommerce.html http://code.google.com/apis/analytics/docs/gaJS/gaJSApiEcommerce.html

TODO / Room for improvement:

  • Optionally allow recording actions: add to cart, remove, set quantity.
  • Integrate analtyics reporting into CMS for an order. This way site owners an see additional info for the customer.
Something went wrong with that request. Please try again.