简体   繁体   中英

Excluding a URL With Google Analytics Regex

I am tracking several urls on my website and I want to count only the ones beginning with /espace-debat

Examples:

/espace-debat/debat
/espace-debat/user/random-number
/espace-debat/debats/random-number

I am creating a goal on analytics to exclude all the others urls.

I am thinking about this Regex

^/(?espace-debat)

I don't know how to test it

Have you tried escaping your expression?

^\/(espace-debat)\/?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM