Regular Expressions in Google Analytics
Regular expressions are used in Google Analytics for various purposes, including:
- Setting up goals
- Using advanced filters in reports
- Creating custom segments
- Configuring view filters
- Using the Analytics API
- Working with Google Tag Manager
- Filtering in Google Docs spreadsheets and automatic reports
Syntax of Regular Expressions
Regular expressions consist of two types of characters:
- Literals (ordinary characters)
- Metacharacters (special characters)
Most characters in a regular expression represent themselves, except for special characters.