Often times you may want to send push notifications automatically to any push subscriber who abandons a funnel.
In the simplest sense, we define a funnel as someone who visits Page1 and then visits Page2. As a result, an Abandoned Funnel would mean someone who visits Page1 but then did not visit Page2 (within a defined time period).
There are many examples where an Abandoned Funnel can be useful - most notably form abandonment.
In this walkthrough, we'll help show you how to start tracking an Abandoned Funnel and send an automatic notification for a subscriber who doesn't finish filling out a form on your site. We'll imagine Page1 is the page with the form, and Page2 is the form completion success page.
Step 1: Determine the event
To start, we need to determine what event we want to record when a funnel has been abandoned. Since our example is for an abandoned form, let's use that as the basis. To get a little more granular, let's imagine someone is filling out a form for a Case Study PDF download.
As a result, we want to track:
- Event Category: Form
- Event Action: Abandoned
- Event Label: CaseStudyPDF
This means that whenever someone abandoned this funnel, we'll track that event against them.
Step 2: Grab your website id
Next up, we need to grab the website id of your Aimtell site. To do so, simply go to Tracking Code (https://dashboard.aimtell.com/tracking-code) make note of it on that page. In this example, we'll say it's 999.
Step 3: Add The Abandoned Funnel Scripts
The Abandoned Funnel script has two parts, the first part tells the system to start listening and the second part is the confirmation page.
You'll first need to add the required snippet of code to the page which holds your form. This is the page we want to start listening on.
For our example, this is "Page1".
Below is a copy of the abandoned funnel snippet with the variables. We'll put this on Page1.
"category": "Form", //event category
"action": "Abandoned", //event action
"label": "CaseStudyPDF", //event label (optional)
"value": 10, // event value (optional)
"timeout": 50 //the time in seconds the person has to finish the funnel (optional)
Next, we'll put the code on "Page2" which would fire if they completed the form successfully.
Step 4: Create the triggered campaign
At this point, you'll start seeing your event logs (Logs > Custom Events) fill up with those who did not complete the funnel.
With this knowledge, you can go ahead and create a Triggered Campaign, targeting these values.