Google Analytics: How to track a session that visited two pages in the same section?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-17 13:49:42

问题


I'm trying to find in Google Analytics how to determine the number of sessions where a user visited more than one page within a section. For example:

User visits the following pages:

/
/section-one/page-a/
/section-one/page-b/
/section-two/

This user session would count as more than one page in /section-one/.

User visits the following pages:

/
/section-one/page-a/
/section-two/

This user session would not count as more than one page in /section-one/.

How is this done in Google Analytics? Preferably without adding custom events.


回答1:


Jay, I think that your best solution is to build a segment in order to properly know how many sessions did see a given number of pages within a section.

This solution will work with a page that has a path structure that allows it, as described in your example: /section-name/page.

So, the way to achieve this is to create a Segment using a "Sequence" of conditions.

The sequence will make the segment match the conditions using the following logic: if session viewed page within /section/ and later viewed another page within /section/ that user saw at least two pages in that section.

So the sequence will be:

  1. Include Sessions with Page contains /section-name/ is followed by
  2. Include Sessions with Page contains /section-name/

Add as many times as the threshold you want to track.

The only flaw I see is that if the user saw two times the same page, it will be counted as matching the condition. I can't figure a flawless rule yet to overcome that issue. I have tried some, but I cannot say they are a definite solution. Anyways, as long as I can see, this kind of segment does a good job, even if there will always be some error margin.

Maybe someone else knows a more elegant way to do this.




回答2:


Unfortunately, the above method suggested by Hernan shows incorrect data. As detailed by Analytics Edge, "Google tags the Session count only to the first page viewed". This means that the above example segment will only show sessions where "/section/" is the first page in a session and will not count the sessions where this page comes is in second place or later.

Instead, one could try to instead measure unique pageviews (as these count each page only once per session), but this way of measuring may not help in all scenarios (like Jay's question).



来源:https://stackoverflow.com/questions/33220965/google-analytics-how-to-track-a-session-that-visited-two-pages-in-the-same-sect

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