The Quick API Goals extension allows you to easily track user engagement throughout your site without any coding knowledge.
Like any FormLift extension, setup is braindead easy! Here’s how to use it.
1. Set Up an API Goal in Infusionsoft:
Set up your API goal in the Infusionsoft campaign builder.
Your goal MUST have the integration name FormLift. You may specify any Alpha Numeric call name you want.
2. Add your API trigger:
The Quick API goals extension gives you three ways to trigger the API call!
On A Page Load:
To trigger your api goal on a page load, simply add the following shortcode to the page in question anywhere in the content.
This will not output any html, it will only fire the specified call name. Replace “mycallname” with the call name in your API goal.
On a Link Click:
This only works if you are linking to a page within your WordPress site!
Add the following to the end of your link.
Replace “mycallname” with the call name in your API goal.
If you need to redirect outside of your wordpress site, then do this.
On an element click:
If you need a goal to be fired if someone is staying on the same page, but clicks something on the page, such as a video or a download, you can do the following.
Add the following CSS class to the element.
Whenever a user clicks on an element with that class, “mycallname” will be fired.
3. Putting it all together:
It goes without saying that in order for Quick API Goals to work, a user would have had to fill out a from previously on your site!
So, after any one submits a form, make SURE the following is done.
You must redirect them back to the site, DO NOT USE THE HOSTED THANK YOU PAGE, and in the thank you page settings you must tick the box “send contact info to thank you page” or the Quick Goals will not work.
After submitting a form, a user will be able to trigger API goals for some time depending on how many days you have set to store a user’s information here,
If you leave that setting blank, a user will be able to complete API goals on your site without having to fill out any forms for up to 30 days.