我想跟踪发送到 GA 跟踪的相同数据,并希望拥有我们自己的本地事件表。对于他们的事件/GoogleAnalytics,Google 的数据库架构会是什么样子。
到目前为止,我有一个包含以下列的事件表,我想知道我是否缺少任何主要内容:
事件
id
event-type (ie. event, page-view, custom-var, identity)
domain (ie. sub.main.com, sub2.main.com)
page-url (ie /questions/popular)
action-name (ie. "clicked sign in", "signed up")
session_id (to keep track of entire experience)
user_id (could be nil)
utm_vars (GA source, medium, campaign, etc.)
is_mobile
created_at (timestamp)
data-properties (a hash of other random properties that are being tracked, like "clicked from header", "clicked from footer")