This article is about Universal Analytics, which is going away. It's critical that you migrate your Universal Analytics property settings to Google Analytics 4, or you will begin to lose data on July 1, 2023 (July 1, 2024 for Analytics 360 properties). Learn how to migrate your settings.

Caret (^)

Use the caret to match the following adjacent characters at the beginning of a string.

For example, ^St matches:

  • Start here
  • Stand here
  • Stop here

However, ^St doesn’t match:

  • 1 Start here
  • 2 Stand here
  • 3 Stop here

The preceding 3 lines start with a digit and a space, not with the letters “St”.

Use this type of regular expression to create segments, filters, or goal steps that match a URI. For example, if you need to isolate data for a particular directory of pages, you can use expressions like:

  • ^/mens/ (matches www.example.com/mens/)
  • ^/womens/ (matches www.example.com/womens/)
Was this helpful?
How can we improve it?

Need more help?

Sign in for additional support options to quickly solve your issue

Search
Clear search
Close search
Google apps
Main menu
Search Help Center
true
true
true
true
true
69256