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.

Dollar sign ($)

Use the dollar sign to match the preceding, adjacent characters at the end of a string.

For example, end$ matches:

  • Temporarily suspend
  • We’re going off the deep end
  • Match the characters that prepend

However, end$ doesn’t match:

  • Temporarily suspend.
  • We’re going off the deep end.
  • Match the characters that prepend.

The preceding 3 lines all end with nd. rather than the end characters you’re matching with the regular expression.

Use this type of regular expression to create segments, filters, or goal steps that match a URI. For example, if you’re you’re testing the efficacy of a new .htm version page vs. an older .html version, you can identify the versions separately with regular expressions like:

  • email-signup\.htm$
  • email-signup\.html$

Use the slash to escape the dot and ensure that it is interpreted literally.

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
false
true
true
69256
false
false