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.
To create the trigger:
Define the following settings:
Rules: Click Add new rule, select Event data, and set the following rule:
The data value of the IP address property 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.
To create a segment for visitors who click the modification:
Define the segmentation rules:
Click Add new rule, select Trigger, and set the following rule:
The visitor has triggered IP address begins with 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.
Visitors whose IP address begins with "90.90" will now be segmented.
You're done with this example!