3

I'm currently using Universal analytics.js with the enhanced ecommerce plugin in my store checkout.

When reaching the end of the checkout, I want to send the transaction data client side over the measurement protocol.

I'm wondering if this is at all possible to link up with the customers session created from analytics.js and if so, how?

Thanks in advance for any help

4

1 回答 1

4

它可能是可能的,但在 IMO 中很难做到。

会话控制基于与请求一起发送的cid(以及uid,如果您也发送它)。

为了让您能够在您必须找到一种方法来保存使用的 CID analytics.js 之后发送这些信息,这可能有助于Cookies 和用户识别。如果您有 cid 并使用该客户端 ID 向测量协议发送请求,则应将其视为相同的用户/会话。

我从未尝试过,但理论上它应该可以工作。如果你真的让它工作,我很想知道:)

您还可以考虑添加某种自定义维度,以允许您链接两个请求。

但是,如果您在发送会话结束后使用会话控制,则​​您可能无能为力。会议已结束,我认为您将无法再向其中添加信息。

于 2016-01-21T14:07:01.360 回答