Spree Google analytics
This is a Google analytics extension for Spree Commerce, an open source e-commerce platform built with Ruby on Rails.
Installation
Add this extension to your Gemfile with this line:
bundle add spree_google_analyticsRun the install generator
bundle exec rails g spree_google_analytics:installRestart your server
If your server was running, restart it so that it can find the assets properly.
Developing
Create a dummy app
bundle update bundle exec rake test_appAdd your new code
Run tests
bundle exec rspec
When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:
require 'spree_google_analytics/factories'
Releasing a new version
bundle exec gem bump -p -t
bundle exec gem release
For more options please see gem-release README
Contributing
If you'd like to contribute, please take a look at the instructions for installing dependencies and crafting a good pull request.
Copyright (c) 2025 [name of extension creator], released under the New BSD License