The following topics are covered in this article:
Installation and Setup
window variable and expose a
funnelfly object that includes core methods for your use.
The following snippet must be included before the closing
funnelfly.load() method where we have the placeholder
You can verify the integration is setup correctly by navigating to your website or web application, opening the console, and executing
funnelfly. You should see not see an error returned.
Track Custom Events
When users interact with your website, you want to track their interactions. In Funnelfly, these actions trigger what we call "events". A few reasons to trigger events might be a customer makes a purchase or views a page. Tracking an event can be accomplished like so:
Notice that in order to send extra data with an event, you must send the data in the form of an object.
Tracking users that are logged in and are engaging with the site is just as vital as tracking visitors. Funnelfly's JavaScrpt integration exposes an
track to share a full story of a user's activity.
Depending on how your site is built, you might need to use a templating language or variables to pass along user data. Additionally, the
identify method exposes access to
customFields which allow any extra data to be shared with Funnelfly when identifying users.
Send Form Leads
onFormSubmit method, you must pass in a selector for the form as the first argument. The second argument is a callback that returns the ID of each field in the form, the name of each field in the form as a fallback, or the final fallback being a generic name for each field. These returned parameters are case sensitive, and must exist exactly as the IDs or names on the form inputs.
onFormSubmit method also exposes access to
customFields which allow any extra data to be shared with Funnelfly on form submission.