Sequence Filters

Sequence filters let you segment visits or visitors based on a sequence of events/hits as well as by using dimension constraints.

Sequence of Events/Hits

You can filter sequential segments based on three settings. Note that this feature is not available in Ad Hoc Analysis.



Include Everyone

When creating a segment where “Include Everyone” is set, the segment identifies paths that match the given pattern as a whole. This is an example of a basic sequence segment looking for one hit (Page A) followed by another (Page B) as visited by the same visitor. The segment is set to Include Everyone.



Matches
  • A then B
  • A then (in a different visit) B
  • A then D then B
Does not Match B then A

Only After Sequence

You can set the sequence type to “Only After Sequence" (rather than “Include Everyone”). This allows the segment to identify individual elements within a path where the pattern begins to be matched and also when the pattern stops matching. Here is the example of Hits where up to (and including) this hit, the visitor visited page A, then visited page B, then visited page C:



Note: The segment includes the hits of the sequence itself.

A pattern such as A -> B, would not match the pattern. However, the A -> B -> C matches the pattern, so it becomes the first included hit. It would also match any other sequence that starts with the defined sequence.

Matches
  • A then B then C
  • A then B then C then D
  • A then B then C then D then E then F
  • A then X then B then Y then C then Z then D then E then F
Does not Match
  • A
  • A then B
  • A then B then D

Only Before Sequence

The “Only Before Sequence" function has the same form as “Only After Sequence”, but rather than examining hits that occurred after the defined sequence, hits that occurred prior to the sequence are examined. Here is an example of Hits where starting at (and including) this hit, the visitor will visit page A followed by B, followed by C:



Note: The segment includes the hits of the sequence itself.
Matches
  • A then B then C
  • D then A then B then C
  • D then E then F then A then B then C
  • Z then D then E then F then A then X then B then Y then C
Does not Match
  • A
  • A then B
  • D then A then B

Dimension Constraints

In a “within" clause, in between THEN statements, you can add, for example, “within 1 search keyword instance”, “within 1 eVar 47 instance”. This constrains the segment to within one instance of a dimension.

Setting a ‘Within Dimension’ clause between rules allows a segment to restrict data to sequences where that clause is satisfied. See the example below, where the constraint is set to "Within 1 page":



Matches
  • A then B
Does not Match
  • A then C then B (because B was not within 1 page of A)
Note: If the dimension restriction is taken out, "A then B" and "A then C then B" would both match.