Mobile app version of vmapp.org
Login or Join
Caterina187

: Google Analytics Segments w/ Conditions: Boolean order of operations? Using Google Analytics, I'm trying to create a "supported browsers" segment using the Conditions section, but the boolean order

@Caterina187

Posted in: #AdvancedSegments #GoogleAnalytics

Using Google Analytics, I'm trying to create a "supported browsers" segment using the Conditions section, but the boolean order of operations isn't occurring as expected. A simple example is below.



AND usually takes precendence over OR, so I'd expect my segment above to be interpreted as (Safari AND v10) OR (Chrome AND v57), which would allow me to include a number of Browser/Version combinations.

However, it seems like that's not the case, here. I believe this because:


My results zero out with the segment configured as pictured, but if I remove either the first or fourth clause, I'll get results. This is consistent with my filters being interpreted as Safari AND (v10 OR Chrome) AND v57, such that Safari AND (v10 OR Chrome) and (v10 OR Chrome) AND v57 both return results.
The horizontal line by each AND operator seems to divide the clauses as described above.


OR-precedence doesn't make any sense to me, since the "Add Filter" button already allows the user to add additional clauses which would be equivalent to an AND, allowing the user to choose OR-precedence if they needed to. As it is, there seems to be no way to construct an AND-precedent segment.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Caterina187

1 Comments

Sorted by latest first Latest Oldest Best

 

@Gloria169

The easiest way to accomplish this is to create multiple filters so that each filter can compare the same dimension. So, for example, this type of segment would have a filter for the browser (Safari or Chrome) AND a filter for the browser version (10 or 57). This segment would show you traffic for those browsers only.

Here are screen shots of the segment and the resulting browser table:

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme