How to Add Custom HTML Snippets to Your BigCommerce Store
Adding custom HTML snippets to your BigCommerce store lets you extend functionality, embed third-party widgets, and add custom tracking code — all without touching your theme files directly.
BigCommerce provides several methods for adding custom HTML to your store. Whether you need to add a live chat widget, a trust badge, a custom banner, or a third-party analytics script, there is a clean way to do it without risking your theme stability.
Method 1: Script Manager (Recommended)
BigCommerce's Script Manager (found under Storefront > Script Manager) is the safest and most flexible way to add custom scripts and HTML snippets. It allows you to add code that runs on specific pages, during specific checkout stages, and for specific customer groups — all without editing theme files.
Script Manager supports both inline scripts and external script URLs. It also preserves your snippets through theme upgrades, which is the primary advantage over direct theme file editing.
Method 2: Footer/Header Scripts in Theme Settings
For simpler additions, you can add scripts directly to the header or footer of your storefront via Storefront > My Themes > Advanced > Edit Theme Files. Look for the base.html file — this is your global template where header and footer scripts can be placed.
"Always use Script Manager for third-party integrations. It keeps your customizations separate from the theme, making future updates and migrations far simpler."
AnvaSoft Development Team
Method 3: Page-Specific HTML via Web Pages
For adding custom HTML to specific pages (like an About Us page or a landing page), navigate to Storefront > Web Pages and create or edit a page. The WYSIWYG editor includes a Source/HTML button that lets you paste raw HTML directly into the page content.
Common Use Cases
Popular HTML snippet additions include: Google Analytics or Tag Manager, Facebook Pixel, live chat widgets like Zendesk or Intercom, trust badge scripts, exit-intent popup scripts, and custom promotional banners.