2017 © Pedro Peláez
 

silverstripe-module silverstripe-shop-googleanalytics

Integrate SilverStripe shop sales with google analytics.

image

burnbright/silverstripe-shop-googleanalytics

Integrate SilverStripe shop sales with google analytics.

  • Friday, May 20, 2016
  • by jedateach
  • Repository
  • 2 Watchers
  • 1 Stars
  • 636 Installations
  • PHP
  • 1 Dependents
  • 2 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 16 % Grown

The README.md

Shop Google Analytics Tracking

Setup

Add the following to your yaml config:, (*1)

ShopGoogleAnalytics:
  web_property_id: UA-XXXXXX-X

Some additional configuration options (all on the ShopGoogleAnalytics object):, (*2)

  • disable_on_dev - by default analytics code is not included unless Director::isLive() is true, setting this to false causes it to show up any time
  • no_sku_prefix - if an item doesn't have a SKU/InternalItemID set we need to send something to google using this prefix and the ID
  • disable_pageviews - don't include the basic pageview code. set this to true if using another analytics module such as silverstripe/googleanalytics
  • use_requirements - default is true, which uses Requirements::customScript to insert the tracking code. Set this to false and add $GoogleAnalyticsJS to your template to have more control over where the code goes.
  • tracking_type - 'Universal' or 'Classic' - default is Classic to maintain backwards compatibility
  • tracking_code - allows finer grained control over the templates used to generate the javascript

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.

The Versions

20/05 2016

dev-master

9999999-dev

Integrate SilverStripe shop sales with google analytics.

  Sources   Download

BSD-2-Clause

The Requires

 

analytics google silverstripe shop

21/07 2015

1.1.3

1.1.3.0

Integrate SilverStripe shop sales with google analytics.

  Sources   Download

BSD-2-Clause

The Requires

 

analytics google silverstripe shop

21/07 2015

1.1.2

1.1.2.0

Integrate SilverStripe shop sales with google analytics.

  Sources   Download

BSD-2-Clause

The Requires

 

analytics google silverstripe shop

09/01 2015

1.1.1

1.1.1.0

Integrate SilverStripe shop sales with google analytics.

  Sources   Download

BSD-2-Clause

The Requires

 

analytics google silverstripe shop

10/09 2014

1.1.0

1.1.0.0

Integrate SilverStripe shop sales with google analytics.

  Sources   Download

BSD-2-Clause

The Requires

 

analytics google silverstripe shop

17/07 2014

1.0.0

1.0.0.0

Integrate SilverStripe shop sales with google analytics.

  Sources   Download

BSD-2-Clause

The Requires

 

analytics google silverstripe shop