amaseuk
amaseuk

Reputation: 2155

Regular expression for URL for Google Analytics

I'm trying to set up a goal on Google Analytics and want to match a regular expression against the following url:

/tasks/[random characters of random length]/complete

An example input url would be:

/tasks/12444ab22aaa7/complete

Any ideas?

Upvotes: 0

Views: 314

Answers (2)

nt_1
nt_1

Reputation: 703

^/tasks/.*/complete$

Validate with a search in the Top Content report before using in a filter.

Upvotes: 2

Peteris
Peteris

Reputation: 3756

Perhaps this

\/tasks\/[^/]*\/complete

Upvotes: 1

Related Questions