简体   繁体   中英

Using regexp in Google Analytics Goal Funnel steps

I have a goal that can be reached from two pages on my website, for example, /page1 and /page2. I've made a regular expression for the first 'Required step' of the visualization funnel:

^/(page1|page2)$

If i apply it as a filter in the Top Content report - it works fine. But there's nothing registered in the conversion funnel. I actually couldn't find any information about funnel steps - is it even possible to use regexp there just like it's done in the Goal page URL?

I've just been bitten by this. The URLs in the funnel steps are the same as the Goal Destination URL:

https://support.google.com/analytics/answer/1116091?hl=en#matchTypes states

There are three diferent match types that define how Google Analytics identifies a URL for either a goal or a funnel. The match type that you select for your goal URL also applies to the URLs in the funnel , if you create one.

So you can only have regex matches in your funnel steps, if you've chosen Regular Express in the Destination dropdown .

I had the same problem as you. I'd chosen "Equal to" in the dropdown for the destination URL but was using "Begins with" style matches in my funnel steps and therefore getting 0 entries showing in my funnel visualisation.

The following article states that the goal steps should be defined as regex as well.

http://www.analyticsmarket.com/blog/create-google-analytics-goals

"Each step should be defined as a regular expression as well."

(almost at the very bottom of the page)

Hope it helps

尝试删除第一个字符: ^

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