Using regexp in Google Analytics Goal Funnel steps

人盡茶涼 提交于 2019-12-03 07:03:12

问题


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?


回答1:


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.




回答2:


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




回答3:


Try removing the first character: ^.



来源:https://stackoverflow.com/questions/8209041/using-regexp-in-google-analytics-goal-funnel-steps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!