Skip to content

Visitor Segment Rules

With Visitor Segments we want to be able to assign (and unassign) a Visitor from a Segment, whenever they have matched or unmatched a collection of rules. This means we can view different groups of sales data based on if a Visitor is in a pre defined Segment.

The most basic idea here is to say:

if visitor is PPC and has more than 10 visits:
    add them to the segment "Eager Shopper"

This would require 2 Conditions using a different function each.

visitor_is_channel looking for the PPC referer_id X across this visitor's entire visit list. visitor_has_visits gt than the value of "10".

We would add to attrib_segmenter a new Segment with a name and description. We would then make a new segmenter_rule, assign to our new Segment and then populate the pattern with our conditions: (1 and 2). Where 1 and 2 are Conditions we've made using the functions listed above.

Once the DPS/Segmenter box has pulled these latest Conditions and Rules, we will find any matching visitors in segmenter_visitor.