---
updatedAt: 2026-01-29T19:43:26.000Z
agentTools:
  projectIndex: https://developers.pixlee.com/llms.txt
---

# BigCommerce

Documentation for setting up your BigCommerce store to work with Pixlee

# Installing the UGC BigCommerce App

## Get your Pixlee Account Secret key

We need the Pixlee **Account Secret Key** for your account. This key is generated when you create a Pixlee account, and is unique to your account.

1. Go to <https://www.pixlee.com>, log in, navigate to the **Settings** button (the dropdown on the top-right corner) and click **Pixlee API**.

(Alternatively, point your browser to <https://app.pixlee.com/app#settings/pixlee_api> while logged in).

The **Pixlee API** page looks like this:

<Image border={false} src="https://files.readme.io/c106bb9-01_01_new_settings_page.png" title="01_01_new_settings_page.png" />

<br />

2. Record the value of **Account Secret Key**. We will need it later.

<br />

## Get the official Emplifi UGC BigCommerce app from the BigCommerce marketplace

1. Go to the <Anchor label="BigCommerce app listing for the Pixlee app" target="_blank" href="https://www.bigcommerce.com/apps/pixlee/">BigCommerce app listing for the Pixlee app</Anchor> and click "Get This App".

2. If you're prompted to login to your store, please do so. Otherwise skip to the next step.

3. Next, you will be prompted that "Pixlee is requesting access to your BigCommerce store", Click **Confirm**. If you have any questions about why the app needs access to a certain resource, please reach out to **<Anchor label="Support" target="_blank" href="https://support.emplifi.io/hc/en-us/requests/new">Support</Anchor>**.

4. You'll be asked to login with your Pixlee account credentials on the next page. Please use the same credentials that you use when logging into Control Panel. Also, you'll be asked to enter the **Account Secret Key** that we collected in the previous section.

<Image align="center" border={false} src="https://files.readme.io/bb31937db1642aec3299e39be2dafaa92f8b72d3c2441057ce632a4dfaa66ca0-emplifi-account-login.png" title="05_15_bigcommerce_login.png" />

<br />

5. If the login was successful, you will see the Dashboard panel. Please note that it might take about a minute or so for the first time you login.

<Image align="center" border={false} src="https://files.readme.io/528d1bd9ba849d5fa5c1a424970be6ae143692313b3a2097cb4137b0e20a845a-dashboard.png" title="05_04_installed.png" />

***

# Enabling Analytics Tracking

## Website Engagement and Add to Cart Analytics

1. In your BigCommerce store management panel. Click on "Storefront", and then click "Script Manager" in the left navigation panel.

2. In Script Manager, click "Create a Script"\
   ![](https://files.readme.io/1f998a06c7698999af27d33456be66602750b89898c0f96ce5b92cb291ae4fd7-bigcommerce-script-manager.png)

3. Fill in Create Script form
   1. **Name of script:** Pixlee Analytics Script
   2. **Location on page:** Footer
   3. **Select pages where script will be added:** All pages
   4. **Script category:** Analytics
   5. **Script type:** Script
   6. **Script contents:**
      ```html
      <script src="https://assets.pixlee.com/bigcommerce/pixlee.bigcommerce.v1.prod.js"></script>
      ```

4. Click Save

<Image border={false} src="https://files.readme.io/7ab03e1-Screenshot_2023-06-12_at_2.33.18_PM.png" />

<Image border={false} src="https://files.readme.io/175853a-Screenshot_2023-06-12_at_2.34.03_PM.png" />

## Conversion Analytics

1. Copy the following line of code

   ```
   	<script src="https://assets.pixlee.com/bigcommerce/pixlee.bigcommerce.v1.prod.js" order-id="%%ORDER_ID%%"></script>
   ```

2. In your BigCommerce store management panel, select "Setting". Scroll down to "Advanced" and click "Data solutions". [BigCommerce Affiliate Conversion Tracking](https://support.bigcommerce.com/s/article/Passing-Order-Data-to-Affiliate-Programs?language=en_US#installation)\
   ![](https://files.readme.io/6be42e3-Screenshot_2023-06-12_at_1.35.13_PM.png)

3. Under "Web analytics", click "Affiliate Conversion Tracking".\
   ![](https://files.readme.io/a200d43-Screenshot_2023-06-12_at_1.57.31_PM.png)

4. Paste the previously copied text in the input field under "Conversion Tracking Code"\
   ![](https://files.readme.io/ae35497-Screenshot_2023-06-12_at_1.40.39_PM.png)

5. Click Save. You might get a warning saying that the embed code is missing the order's total amount. Don't worry about that. Click OK.

# Embedding a PDP Widget on your Product Page

Assuming that all of your products are in sync with Pixlee, you can embed a PDP Widget on your product page by doing the following.

1. Go to <http://pixlee.com>, log in, and navigate to the **Publish** tab.

(Alternatively, point your browser to <https://app.pixlee.com/app#publish> while logged in).

2. Click the "Install Product Displays" and it should present you with a lightbox that looks like following.

<Image border={false} src="https://files.readme.io/a30f044-01_99_new_pdp.png" title="01_99_new_pdp.png" />

<br />

3. Customize the widget as you wish. At the end, press the "Generate Embed Code" button and you'll be presented with an embed code. Note - We recommend that you leave the "Load Priority" setting to "Low priority" when customizing.

<Image border={false} src="https://files.readme.io/120fed7-01_01_pdp_widget_result.png" title="01_01_pdp_widget_result.png" />

We'll need to make a small modification to this code to adapt it to the BigCommerce environment.

Get rid of the 'skuId' property that is being passed to the Pixlee.addProductWidget function and replace it with a property called 'ecomm\_platform', value must be equal to 'bigcommerce'. In other words, replace

```
skuId:"<= ENTER YOUR SKU ID CODE >"
```

with

```
'ecomm_platform': 'bigcommerce'
```

The resulting snippet should look like

```
<div id="pixlee_container"></div><script type="text/javascript">window.PixleeAsyncInit = function() {Pixlee.init({apiKey:"<YOUR API KEY>"});Pixlee.addProductWidget({ecomm_platform:"bigcommerce",widgetId:<YOUR WIDGET_ID>,accountId:<YOUR ACCOUNT ID>});};</script><script src="//assets.pxlecdn.com/assets/pixlee_widget_1_0_0.js"></script>
```

Copy this snippet, you'll need to paste it in your product page template later.

4. **Log in** to your BigCommerce store admin panel. Open **Storefront** on the left navigation panel and click **Themes** in the submenu.

<br />

5. On the right panel, under the **Current Theme** section. Click on the **Advanced** drop down menu and then select **Edit Theme Files** option.

<Image align="center" border={false} src="https://files.readme.io/46c45a26265b8003ecc22f4e6bd1ba155a96cc500856f5f7ff36db4e292d099f-storefront-themes.png" title="05_06_edit_theme.png" />

6. Theme editor should open in a new page. On the left navigation panel, navigate to **templates** and then **pages**. Under **pages** select **product.html**.

<Image align="center" border={false} src="https://files.readme.io/3dfd2d437b9dc8e42e0de8e89395adbff7697a067a5271e6c196bfe399a9f414-theme-editor.png" title="05_07_product.png" />

<br />

7. This template is the HTML template of your product page. Paste in the snippet that you constructed in Step 3 where you'd like to position the widget in your page.

<Image align="center" border={false} src="https://files.readme.io/b9b3815572565049f73f0482d90b77504ed24fd04d897c30a60be5416699dbf0-theme-product-widget.png" title="05_08_product_pasted.png" />

8. After pasting the snippet, click **Save & apply file**. That's it! The PDP Widget should now appear on your product page.

<Image border={false} src="https://files.readme.io/0193b89-05_09_pdp.png" title="05_09_pdp.png" />

***

# Embedding a Category Widget on your Category Page

Assuming that all of your products are in sync with Pixlee, you can also embed a Category Widget on your category page by doing the following.

1. Go to <http://pixlee.com>, log in, and navigate to the **Publish** tab.

(Alternatively, point your browser to <https://app.pixlee.com/app#publish> while logged in).

2. Click the "Install Product Displays" and it should present you with a lightbox that looks like following.

<Image border={false} src="https://files.readme.io/3938835-01_99_new_pdp.png" title="01_99_new_pdp.png" />

<br />

3. Customize the widget as you wish. At the end, press the "Generate Embed Code" button and you'll be presented with an embed code. Note - We recommend that you leave the "Load Priority" setting to "Low priority" when customizing.

We'll need to make a small modification to this code to adapt it to the BigCommerce environment.

Replace the name of the function from Pixlee.addProductWidget to Pixlee.addCategoryWidget

Get rid of the 'skuId' property that is being passed to the Pixlee.addProductWidget function and replace it with a property called 'ecomm\_platform', value must be equal to 'bigcommerce'. In other words, replace

```
skuId:"<= ENTER YOUR SKU ID CODE >"
```

with

```
'ecomm_platform': 'bigcommerce'
```

The resulting snippet should look like

```
<div id="pixlee_container"></div><script type="text/javascript">window.PixleeAsyncInit = function() {Pixlee.init({apiKey:"<YOUR API KEY>"});Pixlee.addCategoryWidget({ecomm_platform:"bigcommerce",widgetId:<YOUR WIDGET_ID>,accountId:<YOUR ACCOUNT ID>});};</script><script src="//assets.pxlecdn.com/assets/pixlee_widget_1_0_0.js"></script>
```

Copy this snippet, you'll need to paste it in your product page template later.

4. **Log in** to your BigCommerce store admin panel and click on **Storefront** on the left navigation panel. Click on **My Themes** in the submenu.

<br />

5. On the right panel, under the **Current Theme** section. Click on the **Advanced** drop down menu and then select **Edit Theme Files** option.

<Image align="center" border={false} src="https://files.readme.io/f11fa09e2452908d35be1ac6a281324d5f0f7ba26aa99688783d81f4bd895ccc-storefront-themes.png" title="05_06_edit_theme.png" />

6. Theme editor should open in a new page. On the left navigation panel, navigate to **templates** and then **pages**. Under **pages** select **category.html**.

<Image align="center" border={false} src="https://files.readme.io/2b6071ead5080acacc91733cc74f8456818e3cc8170673bc09f62ca09497b68c-theme-editor.png" />

7. This template is the HTML template of your category page. Paste in the snippet that you constructed in Step 3 where you'd like to position the the widget in your page.

<Image align="center" border={false} src="https://files.readme.io/257478f1129bec7dd00595c297ac0b50960b4509a7792d168418616cfd885c29-theme-category-widget.png" title="05_11_category_pasted.png" />

8. After pasting the snippet, click **Save & apply file**. Thats it! The Category Widget should now appear on your product page.

<Image border={false} src="https://files.readme.io/c9e4757-05_09_pdp.png" title="05_09_pdp.png" />