Last updated 05/24/2022
Create custom API events for specific actions on your website, and then add these events to your site’s user journey, so you can see how users progress through your site. You can also hook up these events to Integrations and Rules, to trigger actions in Mailchimp, Slack, Zapier, and more.
This guide covers creating API Events, setting them up in Bread & Butter, and adding them to your User Journey.
Go to Bread & Butter IO on the left side menu in WordPress to begin the Setup process.
Click on the Advanced Settings tab, and scroll down to the Custom API Event Setup section
The get the value to enter in Element Name/ID/Selector, first go to the page editor for the page that has the element you want to trigger the custom API Event.
Return to WordPress, and enter the name you put into the Additional CSS Class(es) into the Element Name/ID/Selector field. Since it is a class, add a dot before (eg: .bb-my-button1).
Note: You can also add the element ID for any other element on your site
Create your Custom API Event in Bread & Butter IO.
Add your Custom API Event to your User Journey in Bread & Butter IO.
(Optional) Hook up your Custom API Event to an Integration & Rule in Bread & Butter IO.
Add authentication & API event tracking to your website/app with a script tag & configuration