Last updated 07/09/2024
Before adding the ‘Continue with’ tool make sure you have added the initialization script tag.
This feature allows you to display Bread & Butter’s ‘Continue with’ tool on all pages your website:
Your visitors will now have the option to convert with one-click using the social accounts you make available to them. Once converted, the first and last name, along with the email address is recorded in the user journey of each visitor, available in the Bread & Butter dashboard. This data can then be exported to your favorite CRM such as Pipedrive or others.
Your visitors will also see a customizable success message after they have signed in.
Note: By default, the ‘Continue with’ tool appears at the top right corner of the browser window. You can it’s position in the browser window by following the instructions below. It can be enabled with the five most common social accounts, in sandbox mode so that you can get started right away. You can manage the sandbox accounts, along with other settings in the Bread & Butter app.
Select the Custom Code from the left menu.
In the Head Code field, paste in the following script tag after the Bread & Butter initialization script tag.
<script> null == window.breadbutterQueue && (window.breadbutterQueue = []), window.injectBreadButter = function (e) { "undefined" != typeof BreadButter && BreadButter.init ? e() : window.breadbutterQueue.push(e) }; injectBreadButter(function () { BreadButter.ui.continueWith(); }); </script>
Note: If you have other Bread & Butter feature snippets, just add this snippet below them.
OPTIONAL:
The ‘Continue with’ tool also allows you to specify options, which you can review on our Github.
For example, if you want the button theme to be icons, the page the user is returned to after login to be different, the continue with position to be 50 pixels in from the bottom left, a delayed load time of 5 seconds and custom success message content, the code would look like this:
<script> null == window.breadbutterQueue && (window.breadbutterQueue = []), window.injectBreadButter = function (e) { "undefined" != typeof BreadButter && BreadButter.init ? e() : window.breadbutterQueue.push(e) }; injectBreadButter(function () { BreadButter.ui.continueWith({ button_theme: "round-icons", destination_url: "https://example.com/new_page/", delay_seconds: 5, continue_with_success_seconds: 5, continue_with_success_header: "Perfect, you're in!", continue_with_success_text: "You can now access our site and features", continue_with_position: { 'bottom': '50px', 'left': '50px' } }); });</script>
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