Adds Piwik tracking with e-commerce tracking to Spree
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Bèr Kessels 48ad92acaf Add Test Coverage Badge hace 4 años
app Add order to checkout. hace 4 años
bin Add boilerplate "spree extension spree_piwik" hace 5 años
config Add houndci settings to allow max line length in js to 110. hace 5 años
doc Add screenshot. hace 4 años
lib Fix spacing issues (houndci) hace 4 años
spec Add codeclimate coverage support to repo hace 4 años
.gitignore Add codeclimate coverage support to repo hace 4 años
.hound.yml Add houndci settings to allow max line length in js to 110. hace 5 años
.rspec Add boilerplate "spree extension spree_piwik" hace 5 años
.ruby-version Pin Ruby version to 2.1.0 as required by spree 3.0 hace 4 años
.travis.yml Don't run dummy_app generation task separately. hace 5 años
Gemfile Upgrade dependencies to 3.0 hace 4 años
README.md Add Test Coverage Badge hace 4 años
Rakefile Add boilerplate "spree extension spree_piwik" hace 5 años
spree_piwik.gemspec Add codeclimate coverage support to repo hace 4 años

README.md

SpreePiwik

Adds piwik tracking with Ecommerce tracking

Status

Build Status Code Climate Test Coverage

Installation

Add spree_piwik to your Gemfile:

gem 'spree_piwik'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_piwik:install

Add your Piwik URL and site-id to the config/initializers/spree_piwik.rb

For example:

Spree::Piwik::Config[:piwik_url] = "piwik.example.com"
Spree::Piwik::Config[:piwik_id] =  1337

Will use http(s)://piwik.example.com/ as url for your Piwik. And track stats for the site that has the id 1337 in Piwik.

Screenshot

Screenshot of the Ecommerce functionality in action with this extension.

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle
bundle exec rake

When testing your applications integration with this extension you may use it’s factories. Simply add this require statement to your spec_helper:

License

SpreePiwik is released under the New BSD License similar to Spree.