Google Analytics 和母版页/用户控制交换
我在我的网站上使用 GA,需要向多个页面添加跟踪。 这些页面通过母版页与 Telerik 选项卡控件结合呈现。 选择选项卡时,代码会评估单击了哪个选项卡,并为该页面插入适当的用户控件并重新呈现它。 根据浏览器的显示,它始终是default.aspx,但其中的ascx不同。
我如何通过这种设置跟踪不同的页面?
I'm using GA on my site and need to add tracking to a several pages. These pages are rendered by means of a master page in conjunction with a Telerik tab control. When a tab is selected, the code evaluates which tab was clicked and inserts the appropriate user control for that page and rerenders it. According to the browser, it's always default.aspx but the ascx in it is different.
How could I track the different pages with this sort of setup?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以尝试这样的事情......
这不是最干净、最合适的解决方案,但 WebForms 通常可以规定不太漂亮的解决方案...这将是我能想到的最简单、最容易实现的更改。
You could try something like this...
This isn't the cleanest most proper solution, but WebForms can often dictate less-than-beautiful solutions... This would be the simplest, easiest to implement change I can think of.