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:
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.
- Log in to your BigCommerce admin panel.
- 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.html.
- Paste the Google Tag Manager <head> script within the <head></head> tags, as high as possible.
- Paste the Google Tag Manager <body> script within the <body></body> tags, immediately after the opening <body> tag.
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.