跟踪用户不在网站上时发生的Google Analytics(分析)事件 [英] Track a Google Analytics event that occurs when a user isn't on the site

查看:88
本文介绍了跟踪用户不在网站上时发生的Google Analytics(分析)事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的网站使用户可以通过银行转帐向我们汇款.他们发起"转移并获得参考代码.然后他们登录到他们的银行帐户,并使用参考代码汇款.

Our site enables users to send money to us via a bank transfer. They 'initiate' the transfer and get a reference code. Then they log in to their bank account and send the money using the reference code.

我们跟踪用户答应汇款的时间,但是我不确定如何跟踪汇款的时间.发生这种情况时,他们将不会登录到该站点,这会使站点变得复杂.有办法吗?

We track when a user promises to send the money but I'm not sure how to track when that money arrives. They won't be logged into the site when it happens which makes it complicated. Is there a way to do this?

提前谢谢!

推荐答案

可以代表最近的用户跟踪事件,但是需要在服务器端进行编码.您需要使用 Google Analytics(分析)衡量协议在收到有关成功转移的通知时创建此事件.您可以将所有相关信息发送到Google Analytics(分析),例如事件类别,操作或事件价值(例如转移金额),甚至可以将这些信息作为电子商务交易进行跟踪.

It is possible to track events on behalf of a recent user, but it requires coding on server side. You need to use the Google Analytics Measurement Protocol to create this event, when you are notified about a successful transfer. You can send all relevant information to Google Analytics, like event category, action, or event value (e.g. transfer amount), or even track these as ecommerce transactions.

您可以查看参数参考以了解有关信息与您的匹配一起发送的必需和可选参数.您还可以使用 Hit Builder 工具来尝试使用此类自定义的匹配.

You can check the parameter reference to learn about the required and optional parameters to be sent with your hit. You can also experiment with such custom built hits with the Hit Builder tool.

如果您希望此事件与现有用户相关联,那么您还需要在访问者访问期间存储其访问者的客户ID,然后在后端启动的Google Analytics(分析)匹配中重复使用此客户ID.

If you would like this event to be connected to your existing user, then you'll also need to store your visitor's client ID during their visit, and later reuse this client ID in your backend-initiated Analytics hit.

Here is an example for an event hit for a recently stored ClientId, with given event attributes, including value.

在这种情况下,至少要注意一些事情.此类事件将在您的Google Analytics(分析)媒体资源中产生其他匹配,并启动会话,如果这些会话的数量与您的总体点击量相当,则可以更改您的各种Analytics(分析)指标.

There a few things to be considered in such scenarios, or at least to be aware of. Such events will generate additional hits in your Analytics property, and also initiate sessions, which can alter your various Analytics metrics, if their volume is comparable to your overall traffic.

这篇关于跟踪用户不在网站上时发生的Google Analytics(分析)事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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