JavaScript Snippet

For websites running on custom HTML, or proprietary web apps, Bread & Butter provides a lightweight JavaScript snippet. This is a "Browser-Side" tracking method. While it provides powerful insights, journey tracking, and identity verification, it is subject to the standard limitations of modern browser-level privacy settings and ad blockers.

⚠️ Important Warning for WordPress Users

If your primary root domain runs on WordPress, do not use this script. You must install the native Bread & Butter WordPress plugin. By choosing the native plugin, you unlock server-side tracking, ensuring your revenue intelligence engine captures the absolute truth of your pipeline without data loss.

Exception: If you are installing Bread & Butter on a peripheral subdomain (like support.yourwebsite.com   orapp.yourwebsite.com  ) that does not run on WordPress, you should use this JavaScript snippet to unify your tracking across your entire ecosystem.

Deploying with Google Tag Manager?

If you already manage your scripts via Google Tag Manager, you can skip the steps below and add your Bread & Butter snippet directly to your GTM container instead. Click here for GTM instructions. Otherwise, follow the steps below to install it manually.


Installation Instructions

Step 1: Locate your Code Snippet

  1. Log in to your Bread & Butter Dashboard.
  2. Navigate to Settings > App & Domains.
  3. Add the sub domain you want to merge with your primary domain account.
  4. Locate the JavaScript tracking snippet provided on this page. Your unique App ID is already dynamically included in the code.
  5. Click to copy the entire snippet.

Step 2: Add the Snippet to your Website

  1. Open your website's source code or access your platform's custom code/theme editor.
  2. Locate the global <head>   section of your HTML. This is usually found in a master template file (like theme.liquid  , header.php  , or a global site settings menu).
  3. Paste the Bread & Butter snippet directly into the <head>   section, ideally as high up as possible.
  4. Save and publish your changes.

Step 3: Verify Your Installation Once published, open your website in a new browser tab or incognito window. Navigate back to your Bread & Butter Dashboard to verify that your active session is being recorded and that your Lead Intelligence Engine is receiving data.


Troubleshooting

  • No Data in the Bread & Butter dashboard? Verify that your App ID is correct in the script.
  • Domain Check: Ensure your current URL (including any peripheral subdomains you are testing) is listed under Settings > Advanced Settings > Website Domains in the Bread & Butter dashboard.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.