通用分析和 Facebook 注册 [英] Universal Analytics and signup with Facebook

查看:25
本文介绍了通用分析和 Facebook 注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个允许通过 Facebook 注册的网站 (theneeds.com).我们正在运行多个广告系列,例如在 Facebook 本身,我们希望正确跟踪来自不同活动的注册.

Universal Analytics 存在问题:当用户注册 Facebook 时,她触发了一个新会话,从而丢失了广告系列参考.

两种可能的解决方案是:

  1. 删除注册表单(即导致新会话开始的页面)上的分析跟踪
  2. 将 facebook.com 添加到推荐排除列表中

不幸的是,两者都有缺点,所以我想知道是否有任何最佳实践或更好的解决方案.

<小时>更多详情如下.

来自Universal Analytics 使用指南"

<块引用><块引用>

默认情况下,所有推荐都会在 Universal Analytics 中触发新会话https://support.google.com/analytics/answer/2795983

以下是发送到 Facebook 的活动示例:

http://www.theneeds.com/?utm_source=facebook&utm_medium=social&utm_campaign=_mycampaign

这就是发生的事情.

  • 当用户点击时,她会打开needs.com,并正确设置来源、媒介和广告系列.
  • 用户现在点击加入并选择 Facebook [1],她被重定向到 facebook.com 以获得授权.
  • 在成功授权 [2] 后,她被重定向回 theneeds.com,推荐人为 facebook.com(或 m.facebook.com,在移动设备上).
  • 这会在 Universal Analytics 中触发新会话,从而丢失有关广告系列的信息.
  • 用户现在在注册表单上,提交后被重定向到标记分析目标的页面.
  • 遗憾的是,目标注册为 facebook.com/referral,而不是 facebook/social/_mycampaign.

注意事项:

[1] 我以 Facebook 为例来简化讨论.显然,Twitter、Google 和任何其他 oAuth 提供商也会发生同样的情况.

[2] 为了进行测试,需要确保用户尚未在 Facebook 上授权该网站,以便她实际看到 facebook.com 上的页面(这是新用户的常见情况)-如果用户已获得授权,她会立即重定向回网站,并且推荐人没有变化,因此可以正确跟踪广告系列.

我已经测试了上面提到的 2 个解决方案.

  1. 删除注册表单上的分析跟踪 - 它的缺点是我失去了页面跟踪
  2. 将 facebook.com 添加到引荐排除列表 - 这会导致失去来自 Facebook 的实际引荐流量(例如,由于用户分享).

装饰链接也是一个不可行的解决方案,因为用户可能会在决定注册之前查看网站,所以我应该在所有链接上传播装饰.

更好的解决方案是暂时禁用注册表单上的推荐,但我不确定在 Universal Analytics 中是否可以这样做.

有什么建议吗?提前谢谢你!

解决方案

我遇到了同样的问题.我仍在研究解决方案,但我正在考虑的一种选择是:https://groups.google.com/forum/#!msg/google-analytics-analyticsjs/NtwQFQAZ2Oo/kh-T0c1eHCYJ 本质上,作者建议在您将用户发送到FB,你设置了一个会话变量来提醒自己嘿,下次你看到这个人,一定要覆盖他的推荐人".然后在每次网页浏览时,检查该会话变量.设置后,您可以:

ga('set', 'referrer', 'http://subdomain.site.com/facebooksigninreturn');

根据作者的说法,这应该是为了防止创建新会话.

I have a website (theneeds.com) that allows signup via Facebook. We're running several campaigns, e.g. on Facebook itself, and we'd like to properly track signups from the different campaigns.

The problem is with Universal Analytics: when a user signs up with Facebook, she triggers a new session thus loosing the campaign reference.

Two possible solutions are:

  1. remove the analytics tracking on the signup form (i.e. the page that causes the new session to start)
  2. add facebook.com to the referral exclusion list

Unfortuantely both have disadvantages, so I'm wondering if there is any best practice or better solution.


More details follow.

From "Universal Analytics usage guidelines"

By default, all referrals trigger a new session in Universal Analytics https://support.google.com/analytics/answer/2795983

Here's an example of a campaign sent to Facebook:

http://www.theneeds.com/?utm_source=facebook&utm_medium=social&utm_campaign=_mycampaign

And here's what happens.

  • When a user clicks, she opens theneeds.com with source, medium and campaign properly set.
  • The user now clicks on Join and select Facebook [1], she's redirected to facebook.com for authorization.
  • After successful authorization [2], she's redirected back to theneeds.com, with referral facebook.com (or m.facebook.com, on a mobile device).
  • This triggers a new session in Universal Analytics, loosing information about the campaign.
  • The user is now on the signup form and, after submission, is redirected to the page that marks the analytics goal.
  • Unfortunately, the goal is registered as facebook.com/referral, and not as facebook/social/_mycampaign.

Notes:

[1] I've used Facebook as an example to simplify the discussion. Clearly the same happens with Twitter, Google, and any other oAuth provider.

[2] In order to test, one needs to make sure that the user has NOT already authorized the website on Facebook so that she actually sees pages on facebook.com (which is the usual case for new users) - if the user is already authorized, she's immediately redirected back to the website and there's no change in the referral, so the campaign is properly tracked.

I've tested the 2 solutions mentioned above.

  1. Remove the analytics tracking on the signup form - whose disadvantage is that I'm loosing page tracking
  2. Add facebook.com to the referral exclusion list - that result in loosing the actual referral traffic from Facebook (e.g. as a result of user shares).

Decorating links is also a non-viable solution as the user might have a look at the website before deciding to signup, so I should propagate decoration on all links.

A better solution would be to temporarily disable the referral on the signup form, but I'm unsure if this is possible in Universal Analytics.

Any suggestion? Thank you in advance!

解决方案

I'm having the same issue. I'm still researching solutions, but one option I'm considering is this one: https://groups.google.com/forum/#!msg/google-analytics-analyticsjs/NtwQFQAZ2Oo/kh-T0c1eHCYJ Essentially, that author recommends that before you send the user to FB, you set a session variable to remind yourself "hey, next time you see this guy, be sure to overwrite his referrer". Then on every pageview, you check for that session variable. When set, you do:

ga('set', 'referrer', 'http://subdomain.site.com/facebooksigninreturn');

According to the author, that's supposed to prevent a new session from being created.

这篇关于通用分析和 Facebook 注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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