How to set up Advanced Triggers
Advanced triggers let you send events to your tracking tools, when visitors behave in a specific way, for example:
- when they are interested in a product page – e.g. when they visit a product page, scroll down at least 50% and spend on the page at least 15 seconds
- or when they are interested in your offer – e.g. when they view 5 product pages
How to set Advanced Triggers
To set advanced triggers, you need to enable the “Advanced Triggers” module and set triggers in the sections that look like the one below.
In the example above, we set a trigger which will fire when a visitor views 5 product pages in one session.
Psst. Can you see the grey “Lead scoring” section? Lead scoring is a powerful new feature in WP Full Picture 8. Learn more about it here and learn how to set it up here.
How to set trigger conditions
The most important part of setting conditions, is filling in the “Data path” field.
Here, you need to specify the location of the data that will be checked.
This can be an fpdata object in the browsers console or any other object you can access through this console.
Attention! Some data in the fpdata object is not available when the consent banner is in optin or one of automatic modes, but visitors don’t agree to statistics.
When you write the data path, you only need to remember to use the “>” symbol to indicate that some value is inside another one.
For example, data located at window.fpdata.page_id
should be entered as fpdata > page_id
.
How to test the trigger
To test the trigger, you simply need to:
- switch the “debug this trigger” option of advanced triggers you want to test
- save the changes on the page
- open your website in a new tab
- take actions that you specified in the conditions
When the conditions are met, you will see a new entry in the browsers console.
How to attach events to triggers
Finally, if your trigger works correctly, you can use it to send an event to the tracking tool you want.
In Google Analytics this can be done in the “Custom tracking” section.
Here, you can specify:
- if your trigger will send event ever time it happens or only once on page (this is especially important for advanced triggers which are checked every second)
- the name of the event that will be sent to Google Analytics
- and its monetary value (this is optional)