You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This example shows you how to use a trigger to identify visitors based on their IP address. You can then segment the visitors to show them content based on their location.

In this example, visitors whose IP address begins with "90.90" will be segmented. You must first create a trigger to detect the device type, and then create a segment based on the trigger.

Creating the trigger

To create the trigger:

  1. In the Control Panel, select Triggers.
  2. Click Create trigger.
  3. Enter the trigger name as "IP address 90.90".
  4. In Evaluation point, select Custom event.
  5. In Event, select Visitor location change. By default, the visitor's location is detected in the beginning of each visit.
  6. Click Add new rule, click Event data, and set the trigger rule:

    The data value of the IP address event begins with 90.90.

    This means that the trigger is fired when a visitor from an IP address beginning with "90.90" enters the site.

    Creating a trigger

  7. When you're done, click Save.

Creating the segment

To create a segment for visitors who click the modification:

  1. In the Control Panel, select Data Management > Segmentation > Segments.
  2. Click Create segment.
  3. Select Add new rule, and select Trigger. Define the rule as follows:

    The visitor has triggered IP address 90.90 more than equal to 1 times, with each trigger event counted.

    This means that in order to get segmented, the visitor must enter the site from an IP address beginning with "90.90". Every visit is counted.

  4. Set the time limit based on the start and end date of your modification. The default time limit is 14 days.

    Configuring a segmentation rule

  5. Select Description, and enter the segment name as "Visited from IP address starting with 90.90". You can also enter a description to better remember what the segment is about.
  6. When you're done, click Save.

You have now completed the example. Visitors whose IP address begins with "90.90" will be segmented.