问题描述
我正在处理的典型情况是一个ASP.NET表单页面(通常是选择加入或注册表单),当用户点击提交时,它会回发给自己。默认情况下,Google Analytics会将这两个视图作为同一页面进行跟踪,因此无法检测哪些访问是初始视图,哪些是成功视图。
过去,我通过以下两种方式之一处理了这个问题:
- 使用事件跟踪跟踪表单提交作为事件。这很好,但在GA中,您看不到此度量标准与您看到的初始页面视图位于同一位置。
- 动态地将查询字符串添加到表单的操作属性,以便生成的浏览量实际上在GA中显示为不同的页面。这感觉就像一个黑客,但我喜欢数据显示在GA中的方式。
这两种方法中的哪一种更可取?还是有更好的方法可以做到这一点,我还没有想到?
查看虚拟综合浏览量,使用它们可以让GA想到任何事件,例如它是您指定URL的综合浏览量。
The typical situation I'm dealing with is an ASP.NET form page (generally an opt-in or sign-up form) that posts back to itself when the user hits submit. By default, Google Analytics will track both of these views as the same page, so it's not possible to detect which visits are the initial view vs. which are the "success" view.
In the past, I've dealt with this in one of two ways:
- Using Event Tracking to track form submission as an event. This works fine, but in GA you don't see this metric in the same place as you see the initial page views.
- Dynamically adding a querystring to the form's action attribute so the resulting pageview actually shows up as a different page in GA. This feels like a hack, but I like the way the data shows up in GA.
Is either of these approaches preferable, or is there a better way to do it that I haven't thought of?
Have a look at virtual pageviews, using them you can make GA think of any event like it was a pageview with the URL you specify.
这篇关于如何在Google Analytics中跟踪ASP.NET回发的不同浏览量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!