---
title: Conversion Tracking and Dynamic Remarketing Tag instructions for BigCommerce
description: Improve your advertising effectiveness by setting up conversion tracking and a dynamic remarketing tag on your Big Commerce website
---

[Skip to content](https://kb.feedops.com/knowledge/conversion-tracking-and-dynamic-remarketing-tag-instructions-for-bigcommerce#main-content)

English

Show submenu for translations

[![Feedops-logo\_Final-2-4 1](https://kb.feedops.com/hs-fs/hubfs/Feedops-logo_Final-2-4%201.png?width=150&height=55&name=Feedops-logo_Final-2-4%201.png)](https://kb.feedops.com/knowledge?hsLang=en)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [Contact Us](https://feedops.com/contact-us/)

[Contact Us](https://feedops.com/contact-us/)

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center](https://kb.feedops.com/knowledge?hsLang=en)
2. [Website Integration Help](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en)
3. [BigCommerce](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#bigcommerce)

# Conversion Tracking and Dynamic Remarketing Tag instructions for BigCommerce

## Improve your advertising effectiveness by setting up conversion tracking and a dynamic remarketing tag on your Big Commerce website

1. You will first need to [import the FeedOps Google Tag Manager container on your website](https://kb.feedops.com/knowledge/installing-the-feedops-google-tag-manager-container-on-my-website?hs_preview=MFNqqieC-55604759396&hsLang=en).
2. Once the Google Tag Manager has been set up, log in to your BigCommerce admin panel.
3. In the left-hand menu, select **Advanced Settings \> Data Solutions (formerly Web Analytics)**.
4. Scroll down to **Affiliate Conversion Tracking**, click the three dots and select **Edit**.![BC Affiliate Edit](https://kb.feedops.com/hs-fs/hubfs/BC%20Affiliate%20Edit.png?width=688&name=BC%20Affiliate%20Edit.png)
5. Copy and paste the following into the connection box,
   
   ```
   <!-- FeedOps - Dynamic Remarketing - Version 4 START --><script>    var order_id = %%ORDER_ID%%    fetch('/api/storefront/order/' + order_id, {           credentials: 'include'    }).then(function (response) {            return response.json();    }).then(function (myJson) {                currency_code = myJson.currency.code;                ids = myJson.lineItems.physicalItems.map(a => a.sku);                products = myJson.lineItems.physicalItems.map(p => ({ item_id: p.sku, item_name: p.name, currency: 'AUD', quantity: p.quantity, price: p.salePrice || p.listPrice }) );                user_phone = myJson.billingAddress.phone;                first_name = myJson.billingAddress.firstName;                last_name = myJson.billingAddress.lastName;                street = myJson.billingAddress.address1;                city = myJson.billingAddress.city;                region = myJson.billingAddress. stateOrProvinceCode;                postal_code = myJson.billingAddress.postalCode;                country = myJson.billingAddress.countryCode;        window.dataLayer = window.dataLayer || [];        window.dataLayer.push({                  'event': 'DynamicRemarketing',                  'ecomm_pagetype': 'purchase',                  'currency': currency_code,                   'ecomm_totalvalue': %%ORDER_AMOUNT%%,                     'order_id': %%ORDER_ID%%,              'ecomm_prodid': ids,                          'user_email': '%%ORDER_EMAIL%%',                          'user_phone': user_phone,                          'order_user_first_name': first_name,                          'order_user_last_name': last_name,                          'order_shipping_street': street,                          'order_shipping_city': city,                          'order_shipping_region': region,                          'order_shipping_postal_code': postal_code,                          'order_shipping_country_code': country,                          'products': products          });    });</script><!-- FeedOps - Dynamic Remarketing - Version 4 END -->
   ```
   
   Make sure you click the **Save** button once you have done this.

There are 2 ways to add the **Home & Product** page scripts.

If you are using [Stencil Theme](https://support.bigcommerce.com/s/article/Stencil-Themes?language=en_US) then we will use **Script Manager**:

1. Back in the left-hand menu, go to **Storefront \> Script Manager**, then click **Create a Script**. ![BG - Script Manager](https://kb.feedops.com/hs-fs/hubfs/BG%20-%20Script%20Manager.png?width=688&name=BG%20-%20Script%20Manager.png)
2. Enter "**Name of script**" \> "**Home Page DRT Script**"  
   Select "**Location on page**" \> "**Footer**"  
   "**Select pages where script will be added**" \> "**Store pages**"  
   Select "**Script category**" \> "**Essential**"  
   Select "**Script type**" \> "**Script**"![BC - Home SM](https://kb.feedops.com/hs-fs/hubfs/BC%20-%20Home%20SM.png?width=688&name=BC%20-%20Home%20SM.png)![BC - Home SM 1](https://kb.feedops.com/hs-fs/hubfs/BC%20-%20Home%20SM%201.png?width=688&name=BC%20-%20Home%20SM%201.png)  
   Then within the "**Script contents**", paste the following script:
   
   ```
   <!-- FeedOps - Dynamic Remarketing - Version 1 START --><script>    {{#if settings.request.absolute_path '===' '/'}}      dataLayer.push({        'event': 'DynamicRemarketing',        'ecomm_pagetype': 'home'      });    {{/if}}</script><!-- FeedOps - Dynamic Remarketing - Version 1 END -->
   ```
   
    Click **Save**.
3. Now, create another script by clicking "**Create a script**" and  
   Enter "**Name of script**" \> "**Product Page DRT Script**"  
   Select "**Location on page**" \> "**Footer**"  
   "**Select pages where script will be added**" \> "**Store pages**"  
   Select "**Script category**" \> "**Essential**"  
   Select "**Script type**" \> "**Script**"  
   Then within the "**Script contents**", paste the following script:
   
   ```
   <!-- FeedOps DRT Script START --><script>  {{#if page_type '==' 'product'}}    {{#if product.id}}      dataLayer.push({        'event': 'DynamicRemarketing',        'ecomm_pagetype': 'product',        'ecomm_totalvalue': '{{#if product.price.with_tax}}{{product.price.with_tax.value}}{{else}}{{product.price.without_tax.value}}{{/if}}',        'currency': "{{#if product.price.with_tax}}{{product.price.with_tax.currency}}{{else}}{{product.price.without_tax.currency}}{{/if}}",        'ecomm_prodid': ['{{ product.id }}']      });    {{/if}}  {{/if}}</script><script>  {{#if page_type '==' 'product'}}    {{#if product.id}}      document.getElementById('ADD TO CART ID').addEventListener('click', function() {        dataLayer.push({            'event': 'DynamicRemarketing',            'ecomm_pagetype': 'cart',            'ecomm_totalvalue': '{{#if product.price.with_tax}}{{product.price.with_tax.value}}{{else}}{{product.price.without_tax.value}}{{/if}}',            'currency': "{{#if product.price.with_tax}}{{product.price.with_tax.currency}}{{else}}{{product.price.without_tax.currency}}{{/if}}",            'ecomm_prodid': ['{{ product.id }}']        });      });    {{/if}}  {{/if}}</script><!-- FeedOps DRT Script END -->
   ```
   
    Click **Save**.

If you are not using Stencil Theme and a [Legacy Blueprint Theme](https://support.bigcommerce.com/s/article/Which-Theme-Platform-do-I-have?language=en_US) then add the scripts directly to theme files:

1. Back in the left-hand menu, go to **Storefront \> My Themes**, then on your current theme, click **Advanced** and select **Edit Theme Files**.  
   ![Edit Theme Files - BigCommerce-1](https://kb.feedops.com/hs-fs/hubfs/Edit%20Theme%20Files%20-%20BigCommerce-1.png?width=688&name=Edit%20Theme%20Files%20-%20BigCommerce-1.png)  
   You may get a warning that you are about to edit your active theme. If so, click **Edit Theme Files** to continue.
2. You then want to find “**product-view.html**” this should be under **templates \> components \> products.![CT & DRT Product Script - BigCommerce](https://kb.feedops.com/hs-fs/hubfs/CT%20%26%20DRT%20Product%20Script%20-%20BigCommerce.png?width=688&name=CT%20%26%20DRT%20Product%20Script%20-%20BigCommerce.png)**
3. Scroll to the bottom of “**product-view.html**” and paste the following,
   
   ```
   <!-- FeedOps - Dynamic Remarketing - START --><script>  dataLayer.push({    'event': 'DynamicRemarketing',    'ecomm_pagetype': 'product',    'ecomm_totalvalue': '{{#if product.price.with_tax}}{{product.price.with_tax.value}}{{else}}{{product.price.without_tax.value}}{{/if}}',    'currency': "{{#if product.price.with_tax}}{{product.price.with_tax.currency}}{{else}}{{product.price.without_tax.currency}}{{/if}}",    'ecomm_prodid': ['{{ product.id }}']  });</script><script>document.getElementById('ADD TO CART ID').addEventListener('click',function () {    dataLayer.push({        'event': 'DynamicRemarketing',        'ecomm_pagetype': 'cart',        'ecomm_totalvalue': '{{#if product.price.with_tax}}{{product.price.with_tax.value}}{{else}}{{product.price.without_tax.value}}{{/if}}',        'currency': "{{#if product.price.with_tax}}{{product.price.with_tax.currency}}{{else}}{{product.price.without_tax.currency}}{{/if}}",        'ecomm_prodid': ['{{ product.id }}']    });  });</script><!-- FeedOps - Dynamic Remarketing - END -->
   ```

You will then need to replace “**ADD TO CART ID**” with the id of the add to cart button on your website. This can be found by going to a product webpage in Google Chrome. Right-click and select “**Inspect**”, click on the inspect element icon in the toolbar that opens and then click on the add to cart button on the webpage. This should highlight a line that will be something like,  
\<input id=”xxx”...  
“xxx” will be the value you use to replace “**ADD TO CART ID**”. **Save** your changes once this has been done.

To verify that your Dynamic Remarketing and Conversion Tracking works, you can follow [Test Dynamic Remarketing Tags](https://kb.feedops.com/knowledge/test-dynamic-remarketing-events?hsLang=en) & [ConversionTracking Test Transaction](https://kb.feedops.com/knowledge/conversion-tracking-test-transaction?hsLang=en) guides.

 

- [FeedOps Toolkit](https://kb.feedops.com/knowledge/feedops-toolkit?hsLang=en#main-content)

    - [Feed Optimization](https://kb.feedops.com/knowledge/feedops-toolkit?hsLang=en#feed-optimization)
    - [Insights](https://kb.feedops.com/knowledge/feedops-toolkit?hsLang=en#insights)
- [Onboarding FeedOps](https://kb.feedops.com/knowledge/onboarding-feedops?hsLang=en#main-content)

    - [Initial Set-Up](https://kb.feedops.com/knowledge/onboarding-feedops?hsLang=en#initial-set-up)
    - [Account & Website Settings](https://kb.feedops.com/knowledge/onboarding-feedops?hsLang=en#account-website-settings)
    - [Supported Platform Guides](https://kb.feedops.com/knowledge/onboarding-feedops?hsLang=en#supported-platform-guides)
- [Troubleshooting](https://kb.feedops.com/knowledge/troubleshooting?hsLang=en)
- [Choosing FeedOps](https://kb.feedops.com/knowledge/choosing-feedops?hsLang=en#main-content)

    - [FeedOps Overview](https://kb.feedops.com/knowledge/choosing-feedops?hsLang=en#feedops-overview)
    - [Help Center Introduction](https://kb.feedops.com/knowledge/choosing-feedops?hsLang=en#help-center-introduction)
- [Using FeedOps](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#main-content)

    - [Google Free Product Listings](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#google-free-product-listings)
    - [FeedOps Optimizations](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#feedops-optimizations)
    - [Google Ads](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#google-ads)
    - [eCommerce Store Connection](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#ecommerce-store-connection)
    - [Google Analytics](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#google-analytics)
    - [Google Merchant Center](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#google-merchant-center)
    - [Facebook Catalog](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#facebook-catalog)
    - [Microsoft Ads](https://kb.feedops.com/knowledge/using-feedops?hsLang=en#microsoft-ads)
- [Website Integration Help](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#main-content)

    - [BigCommerce](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#bigcommerce)
    - [Google Analytics](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#google-analytics)
    - [Magento](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#magento)
    - [Ecwid](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#ecwid)
    - [Shopify](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#shopify)
    - [Magento 2.X](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#magento-2-x)
    - [Neto](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#neto)
    - [OpenCart](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#opencart)
    - [Other](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#other)
    - [Google Merchant Center](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#google-merchant-center)
    - [WooCommerce](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#woocommerce)
    - [Salesforce Commerce Cloud](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#salesforce-commerce-cloud)
    - [Marketplacer](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#marketplacer)
    - [Tracking Conversions and Remarketing Events](https://kb.feedops.com/knowledge/website-integration-help?hsLang=en#tracking-conversions-and-remarketing-events)
- [Learning Center](https://kb.feedops.com/knowledge/learning-center?hsLang=en#main-content)

    - [Google Ads](https://kb.feedops.com/knowledge/learning-center?hsLang=en#google-ads)
    - [Google Merchant Center](https://kb.feedops.com/knowledge/learning-center?hsLang=en#google-merchant-center)
- [Muzaara Bing Shopping Feed](https://kb.feedops.com/knowledge/muzaara-bing-shopping-feed?hsLang=en#main-content)

    - [Platform](https://kb.feedops.com/knowledge/muzaara-bing-shopping-feed?hsLang=en#platform)

[![FeedOps ](https://kb.feedops.com/hs-fs/hubfs/60a5a09c9ca6b7064e3fac09_feedops-footer-logo.png?width=322&height=87&name=60a5a09c9ca6b7064e3fac09_feedops-footer-logo.png "FeedOps ")](http://feedops.com)

Copyright © 2026, FeedOps