Add the TermsFeed Privacy Consent cookie banner to a store by pasting its snippet into the <head> of every storefront page, then turn off the consent feature the platform ships. This guide covers BigCommerce stores on Stencil themes, Magento Open Source and Adobe Commerce 2.4, and PrestaShop 8 with the Classic theme or a child of it. Setup takes about 30 minutes, plus a test order on each payment method.

A Shopify store has its own guide, because Shopify checkout does not run theme code. Follow Install TermsFeed Privacy Consent on Shopify for a Shopify store, and create the consent banner first with Create Your First TermsFeed Privacy Consent Banner.

The Install page of your consent banner gives the snippet, with your own token in place of YOUR_TOKEN. It goes in one place on each platform.

<!-- Privacy Consent by TermsFeed (https://www.termsfeed.com) -->
<script type="text/javascript" src="https://cdn.termsfeedtag.com/plugins/pc/v1/YOUR_TOKEN/plugin.js" async></script>
<!-- End Privacy Consent by TermsFeed (https://www.termsfeed.com) -->
Platform Where the snippet goes After saving
BigCommerce Storefront > Script Manager, a script in the head of "All pages" Nothing to clear
Magento 2.4 Content > Design > Configuration, the store view, "HTML Head", "Scripts and Style Sheets" Flush the Magento cache
PrestaShop 8 templates/_partials/head.tpl of a child theme Clear the cache

BigCommerce: add the snippet with Script Manager

Open Storefront > Script Manager and click "Create a Script". Set the placement to the head, the location to "All pages", and the category to "Essential", choose to enter the script yourself, paste the snippet, and save. "All pages" covers the storefront, cart, checkout, and order confirmation, according to the BigCommerce guide to Script Manager.

The "Essential" category keeps Privacy Consent running for every shopper. BigCommerce holds its other categories until its own consent banner allows them, while its cookie consent setting is on.

Magento: add the snippet to "HTML Head"

Open Content > Design > Configuration, click "Edit" on the row of the store view, and expand "HTML Head". Paste the snippet into "Scripts and Style Sheets" and click "Save Configuration". Next, open System > Cache Management and click "Flush Magento Cache", since Magento keeps serving cached pages until you flush them.

PrestaShop: add the snippet to the theme head template

Copy templates/_partials/head.tpl from the parent theme into the same path of a child theme, so a theme update does not remove the edit. Paste the snippet near the top of the copy, and clear the cache under Advanced Parameters > Performance. The snippet has no braces, so Smarty leaves it alone. Wrap any inline script with braces, such as your own Consent Mode block, in {literal} tags.

A platform feature left on shows a second consent banner or holds scripts on a choice Privacy Consent never sees. Turn it off, so one consent banner asks and one consent log records the answer.

BigCommerce keeps the feature in its security and privacy settings, under "Cookie consent tracking". Magento keeps it under Stores > Configuration > General > Web > Default Cookie Settings: set "Cookie Restriction Mode" to "No". PrestaShop core ships no consent banner, so disable any cookie consent module under Modules > Module Manager.

Keep payment scripts running at checkout

Privacy Consent runs on the checkout pages of these platforms, because the snippet sits on every page. Payment scripts the platform loads itself stay outside Privacy Consent and keep running, so leave them out of your vendors.

Load a payment script you add yourself directly on your payment pages, outside your vendors. As a vendor it stops for a shopper who clicks I Decline, and the payment step fails. On other pages, the Stripe template runs Stripe.js under the Functionality vendor category. Set up the 2 common providers with Add Stripe and Add PayPal.

Magento 2.4.7 and later enforces a Content Security Policy on its payment pages, so allow the script host there. Add these entries to etc/csp_whitelist.xml in a custom module. Copy the rest of the policy your vendors need from the Content Security Policy reference.

<?xml version="1.0"?>
<csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd">
    <policies>
        <policy id="script-src">
            <values>
                <value id="termsfeed-pc-script" type="host">https://cdn.termsfeedtag.com</value>
            </values>
        </policy>
        <policy id="connect-src">
            <values>
                <value id="termsfeed-pc-connect" type="host">https://cdn.termsfeedtag.com</value>
            </values>
        </policy>
    </policies>
</csp_whitelist>

The platform prints these tags before any consent, so they run whatever the shopper answers. Check each source and move what you find into a vendor.

  • BigCommerce data solutions and Script Manager. Disconnect the Google Analytics and Meta Pixel data solutions, and remove scripts in the "Analytics", "Functional", and "Targeting/Advertising" categories.
  • Magento Google settings. Set "Enable" to "No" for Google Analytics and Google Ads under Stores > Configuration > Sales > Google API, and remove tracking code from "Scripts and Style Sheets".
  • PrestaShop modules. Disable the Google Analytics module and any pixel module under Modules > Module Manager, since each prints its own tag.
  • Theme files and extensions. Search the theme for googletagmanager.com, connect.facebook.net, and analytics.tiktok.com, and check each extension for a tracking setting.

Delete each integration only after its vendor exists, so no page runs the service twice. Set each one up with Add a Vendor From a Template. Events an extension sends from your server, such as a conversions API, never pass through the browser, so check them against the blocking limits of Privacy Consent.

Report conversions on the order confirmation page

A vendor tag runs on every page where Privacy Consent runs, so a conversion needs a signal that this page is the order confirmation. The Google Ads template reads one: window.tfAdsConversion, an object with the fields of a Google Ads conversion event. Print it in the order confirmation template of your platform, with your conversion label and the order variables the template offers.

<script>
  window.tfAdsConversion = {
    send_to: 'AW-123456789/CONVERSION_LABEL',
    value: 49.90,
    currency: 'USD',
    transaction_id: 'ORDER_ID'
  };
</script>

The object sends nothing by itself and does not set a cookie. The template sends the event with the consent state in effect, and transaction_id stops Google Ads from counting a reload twice. Add the vendor with Add Google Ads Conversion Tracking.

Add this element beside your Privacy Policy link, in the footer template of the theme or a footer content block, such as a Magento CMS block. A click on it opens the Preferences Center. Compare it with the floating button in Let Visitors Reopen Preferences.

<a href="#" id="open_privacy_preferences_element">Privacy Preferences</a>

A BigCommerce store answers on your domain and on its permanent address ending in mybigcommerce.com. A Magento or PrestaShop installation with store views on several domains answers on each one. List your main domain on the Settings page and the others under "Additional domains".

The consent banner loads only on the domains you add, and the Analytics page counts only the hostnames you list. Each hostname keeps its own answer in the browser. Add the domains with Run One TermsFeed Privacy Consent Banner Across Several Domains.

Flush the store cache, then walk through a test order in a private window with Chrome DevTools open, using the sandbox mode of your payment provider. Shoppers everywhere get the consent banner under Strict, the starting consent logic. Under Standard in Settings, a shopper in a US state does not get one, so choose a test location from Cookie Banner by Visitor Location.

  1. Select the Network tab, type termsfeedtag in the filter box, and reload the home page. 7 requests appear with status 200.
  2. Reload a product page, the cart, and the checkout. The same requests appear on each, which shows the snippet on every page type.
  3. Filter for the host of a custom vendor, such as hotjar.com, and reload before you answer. No request appears.
  4. Click I Decline, complete the test order, and watch the payment step. The payment provider requests appear with status 200, and the order completes.
  5. Close every private window, open a new one, click I Agree, and place a second test order. On the order confirmation page, filter for conversion, and the conversion request appears once.

Filter for events.push while you click, and each answer shows a request with status 201. Work through the other checks in Check That Your TermsFeed Privacy Consent Installation Works.

Common mistakes on BigCommerce, Magento, and PrestaShop

Most store problems come from a cache that serves the old page or a platform integration that still prints its tag.

  • The Magento cache still serves pages without the snippet. Flush the Magento cache after every change to "HTML Head".
  • The snippet sits on one Magento store view only. A store view with its own "HTML Head" setting does not show the consent banner. Check the setting at each scope.
  • The PrestaShop change sits in the parent theme. A theme update overwrites head.tpl and removes Privacy Consent.
  • The BigCommerce script uses a category other than "Essential". BigCommerce holds Privacy Consent itself until a consent banner allows it.
  • A payment script runs from a vendor on the payment pages. The payment step fails for shoppers who decline.
  • The platform consent feature stays on. 2 consent banners appear, or scripts wait for a choice Privacy Consent never passes on.

A platform consent banner left on is the most visible of these mistakes. Tell the 2 apart and turn the extra one off with 2 Consent Banners Appear on a Site.