Getting Started > Installation

Installation

It only takes a few minutes to install Offerbox on your website. Once installed, you’ll be able to add and display offers on your online store.

Note: 
  • You'll need an Offerbox trial or subscription to install the code.
  • If you plan to add Offerbox to a Shopify store, please see instructions here. For any other website, follow steps below.

Install the JavaScript code


Just copy the first code snippet in your offers settings, where we pre-populate your website id (this is called your shop or website domain in the code) for you.

Or you can quickly grab it from here instead:

<div id="offerbox"></div>
<script type="text/javascript" src="https://www.offerboxapp.io/embed.js?shop=www.mywebsitedomain.com"></script>
<link rel="stylesheet" type="text/css"  href="https://www.offerboxapp.io/embed.css?shop=www.mywebsitedomain.com" />

How to use the code 

  • Paste the code right before the closing body tag of every page.
  • Replace www.mywebsitedomain.com in the code with your custom domain


Configure Domain:


After you install the script on your site, open your Offerbox dashboard and click "Configure" in the navigation menu.

Find Website settings and add your custom domain.

Website Domain Settings


Your website domain must match the value here. Most websites these days use multiple domains. At a minumum, you have a domain with "www" and also a root domain as shown below.

www.mysite.com
mysite.com

Therefore it is important to configure a primary domain for your website and add redirects to the primary domain. Offerbox only accepts a single domain. In case users visit your site with other domains and there are no redirects to primary domain, Offerbox will not be visible to the user.

Configuring URL forwarding in Cloudflare


Now you're ready to start using Offerbox