本文介绍了Universal Analytics并通过Facebook进行注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



Universal Analytics存在的问题是:当用户注册Facebook时,她会触发新会话,从而失去活动参考。



有两种可能的解决方案:


  1. 删除注册表单上的分析跟踪(即导致新会话的页面开始)

  2. 将facebook.com添加到引荐排除列表

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





更多详细信息请参阅。



来自Universal Analytics使用指南


这里有一个n发送给Facebook的广告系列示例:






  • 当用户点击时,她会以源,媒体和广告系列设置正确的方式打开needs.com。

  • 用户现在点击加入并选择Facebook [1],她被重定向到facebook.com进行授权。
  • 成功授权后[2],她被重定向回至theneeds.com,并通过referral facebook.com(或移动设备上的m.facebook.com)。

  • 这会在Universal Analytics中触发新会话,从而丢失有关广告系列的信息。

  • 用户现在处于注册表单中,并在提交后重定向到标记分析目标的页面。

  • 不幸的是,该目标注册为facebook.com/referral,而不是facebook / social / _mycampaign。



注释:



[1]我以Facebook为例来简化讨论。显然,Twitter,谷歌和任何其他oAuth提供商也是如此。为了测试,需要确保用户尚未授权Facebook上的网站,以便她实际上看到facebook.com上的网页(这是新用户的常见情况) - 如果用户已获得授权,她会立即重定向回网站,并且转介没有任何变化,因此广告系列我已经测试了上述2种解决方案。

>删除注册表单上的分析跟踪 - 其缺点是我失去了页面跟踪功能
  • 将facebook.com添加到转介排除列表 - 导致丢失实际的转介流量Facebook(例如作为用户份额的结果)。

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



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

    p>

    任何建议?
    先谢谢您!

    解决方案

    我遇到同样的问题。我仍在研究解决方案,但我正在考虑的一个选项是:基本上,该作者建议在将用户发送给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"

    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.

    这篇关于Universal Analytics并通过Facebook进行注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

  • 10-27 04:36