BigCommerce

Edgemesh installation instructions for BigCommerce.

On BigCommerce, Edgemesh can be installed through the BigCommerce dashboard in just a few simple steps.

Install the Service Worker

Navigate to your BigCommerce dashboard and find the left sidebar. Naviagate through the sidebar as follows.

Storefront > Web Pages

You should end up on a page that looks like this:

BigCommerce Web Pages

Next, click the Create a Web Page button. This new page going to be the Edgemesh Service Worker.

For the Page Type, select the option Contain raw HTML entered in the text area below.

For the Page Name, you can put Edgemesh Service Worker or whatever anything you want.

For the Page Url, put /sw.js.

For the Page Content, paste in the following JavaScript:

importScripts('https://static.edgeme.sh/edgemesh-sw.js')

If you are running other services that require service workers, this is where you would combine them.

Now just hit Save and Exit on the bottom and your Service Worker is installed! Here is what the final configuration should look like.

Edgemesh Service Worker Configuration

Install the Client Script

Navigate to your BigCommerce dashboard and find the left sidebar. Naviagate through the sidebar as follows.

Storefront > Script Manager

You should end up on a page that looks like this:

BigCommerce Scripts Manager

Next, click the Create Script button. This new script is going to import the Edgemesh Client.

For the Name of script, enter Edgemesh Client or anything that makes sense for you.

For the Location on page, select Head.

For the Select pages where script will be added option, this is really up to you, but we suggest All pages.

For the Script type, select Script.

For Script contents, paste the following JavaScript:

<script
async
type="text/javascript"
src="https://static.edgeme.sh/client.js"
onload="window.edgemesh = new Edgemesh()">
</script>

Your final Client configuration should look something like this:

Edgemesh Client Configuration

Now just hit Save on the bottom right and you are ready to move on to the Edgemesh Portal to validate your domain!