使用与综合浏览量和时间相关的指标的引导模式进行分析 [英] Analytics on a bootstrap modal with pageview and time related metrics

查看:89
本文介绍了使用与综合浏览量和时间相关的指标的引导模式进行分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个页面(让我们将其命名为概览页面),其中包含大量项目图片,点击该项目后会打开引导程序(v3)模式并提供有关该项目的更多信息。每个项目也有自己的页面(单页)。



当用户使用Google(通用)分析打开模式时,我想跟踪项目的综合浏览量。现在我打算通过将以下代码添加到概述页面上的每个链接来做到这一点:

  onClick =ga( 发送,浏览量,/ URL到项目的页面); 

我希望这可以正常工作,因为我在其他文章中看到过有关跟踪AJAX调用浏览量的方法。

但是,我想知道这是如何影响时间相关的指标,如平均页面上的时间,因为分析无法知道模式何时关闭(就像离开单个页面)。



有谁知道这些指标是否可以与普通的单页面视图相比拟,或者是否有部分指标(我猜测时间相关的metics )关闭,因为分析无法跟踪它们?

解决方案

如果我理解正确,作为项目页面的综合浏览量的模式。这可以通过你刚才所说的完成,但使用直接的URL将是愚蠢的意见。您最好使用虚拟URL(VURL)代替。详细了解虚拟网址此处



通用分析(UA)(analytics.js)中也提供此功能,并且如上所述发送此类综合浏览量时,强制GA报告指定网址的综合浏览量。您的代码
(1) ga('send','pageview','/ url-to-project-page'); p>

在UA中, ga('send','pageview'); 用于发送当前的综合浏览量。如果您需要发送虚拟综合浏览量(或者还没有发生但您想要记录的综合浏览量),您还可以将其发送为:
(2)

  ga('send','pageview',{
'page':'/ url-to-project-page'
});


(3)

  ga('set','page','/ url-to-project-page'); 
ga('send','pageview');


(4)

  ga('send',{
'hitType':'pageview',
'page':'/ url-to-project-page'
});

实现1,2和4是相同的,但3是不同的。



您可以阅读更多关于这里的实现,此处这里



这会影响您的浏览量(您会看到增加),但不会增加您的访问次数因为没有用户可以'登陆'虚拟页面(除非你让他们这样做))。这会影响您的跳出率,但是如果他们以模式查看您的项目,这意味着它们与您的站点进行了交互,因此它们不应该被标记为反弹,这就是当您发送虚拟浏览视图时会发生。



尽管您想要做的事是正确的,但是您的实现不能区分实际项目页面视图中的模式视图。我可以通过组织VURL结构来解决这个问题,其方式是有意义的。作为一个例子,我不会发送一个VURL,它直接对应于你的项目单个页面的url,我会发送它: ga('send','pageview','/ virtual / modal / url-to -project-page');



这样,您可以通过为添加排除过滤器来过滤VURL, / virtual ,以避免显示虚拟综合浏览量。另外,您可以使用 / url-to-project-page 查看项目页面的总浏览量。此外,您还可以使用 / virtual / modal 来查看通过打开模版所产生的所有虚拟浏览量。 b b

时间在页面和浏览量/访问量上,这些指标会发生变化,但这取决于您如何看待它,无论是作为错误还是提高了准确性。记录页面上的时间,直到用户导航到新页面,或者发送VURL报告请求或直到会话关闭为止(以先发生者为准)。

希望有所帮助! :)

I have a page (let's name it the overview page) with a lot of images of projects that on a click open a bootstrap (v3) modal with more info about that project. Each project also has its own page (single page).

I'd like to track pageviews for the projects when a user opens the modal with Google (universal) analytics. Now I'm planning on doing this by adding the following code to each link on the overview page:

onClick="ga('send','pageview','/url-to-project-page');"

I expect this works fine since I've seen this method in other posts regarding tracking pageviews on AJAX calls.

But I'm wondering how this affects time related metrics like average time on page, since analytics can't know when the modal is closed (the same as leaving a single page).

Does anyone know if the metrics will be comparable to a normal single page view, or will some parts of the metrics (I'm guessing time related metics) be off because analytics isn't able to track them?

解决方案

If I understand it right, you want to track the opening of the modal as a pageview of the projects page. This can be accomplished with what you just said, but using a direct URL would be unwise in my humble opinion. You would be better off using a virtual URL(VURL) instead. Read more about virtual URLs here.

It is also available in Universal Analytics(UA) (analytics.js) and when you are sending such a pageview as you mentioned above, you are forcing GA to report a pageview of the specified URL. Your code, (1) ga('send','pageview','/url-to-project-page'); will work.

In UA, ga('send','pageview'); is used to send the current pageview. If you need to send a virtual pageview (or a pageview which has not happened but you want to be recorded), you can also send it as: (2)

ga('send', 'pageview', {
  'page': '/url-to-project-page'
});

or as (3)

ga('set', 'page', '/url-to-project-page');
ga('send', 'pageview');

or as (4)

ga('send', {
  'hitType': 'pageview',
  'page': '/url-to-project-page'
});

The implementations 1, 2 and 4 are same, but 3 is different.

You can read more about the implementations here, here and here.

This would affect your pageviews count (you will see an increase), but would not increase your visits (as no user can 'land' on a virtual page (unless you make them do so)). This will impact your bounce rates, but it will not be 'off' in the sense that if they view your project in a modal, it means they have interacted with your site hence they should not be marked as a bounce, and this is what happens when you send a virtual pageview.

Though what you wanted to do was correct, your implementation suffers from not being able to differentiate modal views from actual project page views. I would overcome this by organising the VURL structure in a way that it makes sense and is semantic. As an example, instead of sending a VURL which corresponds directly to your project single page url, I would send it like: ga('send','pageview','/virtual/modal/url-to-project-page');

This way, you can filter out the VURLs by adding an exclude filter for /virtual from pageviews so that virtual pageviews are not shown. Also, you can view total pageviews for project pages by using /url-to-project-page. Also, you can view all virtual pageviews resulting from the opening of modals by using /virtual/modal.

Time on Page and Pageviews/Visit and such metrics will change, but it depends on how you see it, whether as an error or improvement in accuracy. Time on Page is recorded for the virtual pageviews until the user navigates to a new page, or a request to report a VURL is sent, or until the session is closed (whichever happens first).

Hope that helps! :)

这篇关于使用与综合浏览量和时间相关的指标的引导模式进行分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆