Pages

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 /outdoor/.

To create the trigger:

  1. In the Frosmo Control Panel, select Triggers.
  2. Click Create trigger.
  3. In Name, enter "Outdoor category".
  4. In Evaluation point, select Frosmo script loaded. This means that the trigger is evaluated once the Frosmo script has been loaded on the page.
  5. 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).

    Creating a trigger

  6. When you're done, click Save.