Skip to content

rejoiner/spree-plugin

Repository files navigation

SpreeRejoiner

Adds JavaScript snippets to your Spree storefront which support Rejoiner marketing automation.

Gem Version

Installation

  1. Add this extension to your Gemfile with this line:
gem 'spree_rejoiner', '~> 1.0.1'
  1. Install the gem using Bundler:
bundle install
  1. Copy & run migrations
bundle exec rails g spree_rejoiner:install
  1. Restart your server

If your server was running, restart it so that it can find the assets properly.

Configuration

You will need to configure your Site ID in Admin under Configuration > Rejoiner Settings.

Optionally, you may configure a Domain which is used to store the Rejoiner Session ID cookie. This is only needed if you wish to share the Session ID between multiple subdomains. Otherwise, this extension will default to using document.location.hostname.