我想通过使用regualar表达式在Google上创建目标渠道:
例如,假设网站为www.example.com
和漏斗之旅应该是
1. Category Page i.e. /brands/nike
2. Product Page i.e. /brands/nike/nike-air-trainers
3. Checkout i.e /checkout/onepage/success/
你怎么能写这个正则表达式,我之所以问这是谷歌如何区分类别页面和产品页面?
答案 0 :(得分:1)
1. Category Page i.e. /brands/nike - regex: /brands/[^/]+
2. Product Page i.e. /brands/nike/nike-air-trainers - regex: /brands/[^/]+/(.+)
3. Checkout i.e. /checkout/onepage/success/ - regex: /success/ or /checkout/[^/]*/success/