Getting Started > Installation

Installation

Installing Offerbox on your website takes only a few minutes. You'll be able to add and post offers on your online store once it's been setup.

Note: 

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.offerbox.app/embed.js?shop=www.mywebsitedomain.com"></script>
<link rel="stylesheet" type="text/css"  href="https://www.offerbox.app/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.

Configure Domain Name


The value in this field must be the same as the domain of your website. Nowadays, most websites have numerous domains. You must have a domain that begins with "www" and a root domain, as illustrated below.

www.mysite.com
mysite.com

As a result, it's critical to set up a principal domain for your website and establish redirects to that domain. Offerbox only allows one domain at a time. If users access your site through other domains and there are no redirects to the original domain, Offerbox will be hidden from view.

Configuring URL forwarding in Cloudflare


Now you're ready to start using Offerbox

Last Updated: August 1, 2021