I use different ways to send events to Google Analytics on my website. Some user interface interations sends using ga.js
but some user actions (eq.: succesful auth or transaction) is possible to send only from server-side (PHP) using measurment protocol.
Events are both successfully sent and come to GA, but there's no link between JS and PHP events. For example, user entered website, clicked some buttons (stats sent by JS) and made a transaction (stats sent by PHP). After that i see JS events linked to one session but PHP event isn't linked. It just displayed as separate event.
What information should i store and pass to measurment protocol to have that events linked?
问问题
71 次
1 回答
1
您需要发送客户端 ID(在 ga cookie 中设置,因为这是 GA 用于将访问分组到会话中的关键),可能还有用户 ip override 和 user agent override。
于 2015-09-03T08:38:31.907 回答