This example shows you how to create a trigger based on a page URL. You can use triggers like this to, for example, segment visitors based on the pages they have viewed. By recognizing customers who are interested in a specific product, you can recommend relevant products to them.
To segment visitors based on a trigger, you must also create a segment using the trigger as a segmentation rule. For more information, see Creating segments.
For more complex trigger implementations, see Trigger examples.
You can also use this trigger in modification placements to define when to show a modification. For more information, see Creating and editing a placement.
In this example, you fire the trigger when the visitor views product pages in the "outdoor" product category. The web site has been implemented so that for product pages in that category, the URL path contains the string
To create the trigger:
- In the Frosmo Control Panel, select Triggers.
- Click Create trigger.
- In Name, enter "Outdoor category".
- In Evaluation point, select Frosmo script loaded. This means that the trigger is evaluated once the Frosmo script has been loaded on the page.
Click Add new rule, click Page URL, and set the trigger rule as:
Page path begins with /outdoor/.
This means that the trigger is fired when the visitor views a product page in the "outdoor" category (once the Frosmo script has been loaded on the page).
- When you're done, click Save.