📊 Google analytics Tracker functionality extracted from Solidus 2.1
Ruby HTML CSS JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin Rename to solidus_trackers Sep 19, 2016
config
db/migrate
lib
spec Add test to check if the script tag is being rendered Nov 9, 2017
.gitignore
.rspec Initial commit Sep 19, 2016
.rubocop.yml
.travis.yml
Gemfile
LICENSE.md
README.md
Rakefile
solidus_trackers.gemspec

README.md

Solidus Trackers

Build Status

A simple tracker implementation for Solidus.

  • Allows creation of trackers from the admin configuration panel

Installation

Add solidus_trackers to your Gemfile:

gem 'solidus_trackers'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g solidus_trackers:install

Usage

Tracking requirements vary greatly between projects; it is difficult to provide an analytics extension that suits the specific needs of everyone. This extension provides a baseline implementation, however, you are encouraged to find a more robust tracking solution for your project.

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, and Rubocop static code analysis. The dummy app can be regenerated by using rake test_app.

bundle
bundle exec rake

When testing your application's integration with this extension you may use its factories. Simply add this require statement to your spec_helper:

require 'solidus_trackers/factories'