Last updated 03/06/2024
Before adding the ‘Contact us’ tool make sure you have added the initialization script tag.
The ‘Contact us’ tool allows you to add a contact us section to one or more pages on your website:
Users are prompted to authenticate first, before they can submit their message. This allows you to convert your users while they are trying to contact you, and ensures that you only receive real requests from real, validated users. Submissions are sent by email to the app owner.
Follow these steps to add the ‘Contact us’ tool to a page:
Find the initialization script you have added to your webpage (see initialization script if you have not added it already)
In the initialization script, find the line:
BreadButter.configure({app_id: "[APP_ID]"});
Add the following line under BreadButter.configure();
<script> null == window.breadbutterQueue && (window.breadbutterQueue = []), window.injectBreadButter = function (e) { "undefined" != typeof BreadButter && BreadButter.init ? e() : window.breadbutterQueue.push(e) }; injectBreadButter(function () { BreadButter.ui.contactUs({ continue_with_position: { bottom: '45px', right: '20px', }, show_phone: true, show_company_name: true, custom_image_url: 'URL_HERE', locale: { "CONTACT_US": { "ICON_NOTE": "Connect with a real person", "HEADER": "Connect with a real person", "TEXT_1": "Let's get started with your contact information", "TEXT_2": "We only receive what is needed to get in touch with you", "SUB_HEADER": "%FIRST_NAME%, how can we help?", "MESSAGE_INPUT": "Let us know how we can help", "BUTTON": "Send your message", "SUCCESS": "Thanks for reaching out %FIRST_NAME%. We'll get back to you as soon as possible." } } }); }); </script>
The following content can be configured to suit your specific requirements (see screenshot):
%FIRST_NAME%
parameter in the SUB_HEADER
, BUTTON
or SUCCESS
fields.The custom_image_url parameter is optional and can be removed if you prefer the default envelope in the blue circle. If you wish to replace that image, include this parameter with a URL of the image you want to use instead.
You should now see the 'Contact us' tool appear on the specified page.
Repeat the above steps for any other pages for which you want to add the 'Contact us' tool. You can also put the code snippet in your site header so it appears on all pages.
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
Add authentication & API event tracking to your website/app with a script tag & configuration