How to install Google Tag Manager container scripts for the BigCommerce website

Configure your BigCommerce store with Google Tag Manager

Before you install the Google Tag Manager container, you will require your container scripts. If you don't have a Google Tag Manager container, check our How to create a new Google Tag Manager container guide. If you already have a Google Tag Manager container, check our Where to find Google Tag Manager container scripts guide.

Once you have your Google Tag Manager container scripts: Install GTM Container Scripts

The best way to install and ensure the Google Tag Manager container is configured to trigger on each website page accurately is by adding the scripts directly into the template files.

  1. Log in to your BigCommerce admin panel.
  2. In the left-hand menu, go to Storefront > My Themes, then on your current theme, click Advanced and select Edit Theme Files > Templates > Layout > base.htmlEdit Theme Files - BigCommerce
  3. Paste the Google Tag Manager <head> script within the <head></head> tags, as high as possible. Head - GTM Script
  4. Paste the Google Tag Manager <body> script within the <body></body> tags, immediately after the opening <body> tag. Body - GTM Script

You have now successfully installed your Google Tag Manager container on your website. To implement Conversion Tracking & Dynamic Remarketing, check our Conversion Tracking and Dynamic Remarketing Tag instructions for BigCommerce guide.