Adding the Initialization Script via Google Tag Manager (GTM)

Last updated 01/09/2026

You must add the initialization script tag to get started. This script tag will enable tracking, and is required for you to add other Bread & Butter functionality to your website.

Step 1

Go to your Google Tag manager account and find the Google Tag that is already on your website. Then, go to Tags in the left menu and click New to make a new tag.


Step 2

Click on Tag Configuration and for the tag type, choose Custom HTML.

Step 2

Step 3

In the HTML field, paste in the following:

<script>
window.initBreadButter = function () {
    BreadButter.configure({
        app_id: "[APP_ID]"
    });
};
(function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) { return; } js = d.createElement(s); js.id = id; js.src = 'https://cdn.breadbutter.io/dist/breadbutter.8.1.0.1161.min.js'; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'breadbutter-js'));
</script>
Step 3

Step 4

Then, replace [APP_ID] with your App ID from your Bread & Butter App.

Not sure how to get your App ID? Log in to Bread & Butter

Then, go to Settings in the left menu, and click on the Advanced Settings tab. Your App ID will be at the top of the page.

Step 4

Step 5

Click on the Triggering section in Google Tag manager, then select All Pages.

Step 5

Step 6

Name your tag, then click Save, and if necessary, update your tag version so that it includes the changes we have just made.


Step 7

Congratulations! Your website is now set up for Bread & Butter Analytics. Head to your Bread & Butter dashboard to see all of the users visiting your website.

Not seeing any activity? Open up your website in a browser, and see if your visit appears in the Dashboard. If you're still not seeing your activity appear, check the following:

  • Ensure that your App ID in the script tag is correct.
  • In the Settings page in Bread & Butter, make sure your website is in the Website Domains List.



Don’t use Bread & Butter? Want to learn more about how Bread & Butter solves the four biggest problems facing marketers today? Book a demo and see how Bread & Butter is helping marketers make the most of their first-party data