如何跟踪 Facebook iframe 应用程序的流量来源
我有一个 facebook iframe 应用程序 - 我们称之为 apps.facebook.com/my-app。
我们目前使用 Google Analytics 进行跟踪,并且我正确地将 Google Analytics 安装在我的应用程序上(通过 iframe 包含在 FB 应用程序中)&它正在跟踪上述应用程序的任何使用情况。
但是,我想知道 my-app 在 facebook 之前的流量来源是什么;即,如果用户访问domain1.com,并从那里点击链接到apps.facebook.com/my-app,则“流量源”似乎被跟踪为“apps.facebook.com”而不是“domain1” .com”,b/c GA 安装在通过 iframe 包含的页面代码中,因此其 http 引用是 apps.facebook.com
有没有办法检索“domain1.com”作为我的流量源,在此案件?或者有什么建议可以尝试吗? (无论是使用谷歌分析,还是其他来源?我看到Facebook的见解确实提供了一些有关推荐人的信息,但它根本不是很广泛;没有日期范围等)
非常感谢! - 阿里
I have a facebook iframe application - let's call it apps.facebook.com/my-app.
We currently use Google Analytics for our tracking, and I correctly have Google Analytics installed on my application (that is included via iframe to the FB app) & it is tracking any use of the application mentioned above.
However, I would like to find out what the traffic source is to my-app PRIOR to facebook; ie, if a user goes to domain1.com, and follows a link from there to apps.facebook.com/my-app, it appears that the "traffic source" gets tracked as "apps.facebook.com" rather than "domain1.com", b/c the GA is installed within my code of the page included via the iframe, so its http referer is apps.facebook.com
Is there any way to retrieve "domain1.com" as my traffic source, in this case? Or any suggestions to try? (whether using Google Analytics, or another source? I see that the facebook insights does give some information on referrers, but it's not very extensive at all; no date ranges, etc)
Thanks so much!
- ali
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
仅在 Facebook 中使用 Google Analytics,您在这里无能为力。然而,我们过去所做的(总体成功)是在 Facebook 外部创建一个重定向链接并对其进行分析,并首先将所有流量推送到那里。
换句话说,在 www.myapp.com/redirect 上创建一个页面,并将 google tracker 放在那里(或者,也可以手动将引用网址附加到查询字符串中)。然后,使用 javascript 重定向到 Facebook 画布应用程序 URL。这样,用户最终会到达正确的位置,并且您也可以获得推荐人信息。
Just using Google Analytics in Facebook, there isn't much you can do here. However, what we've done in the past (to general success) is to create a redirect link outside of Facebook with the analytics on it, and push all traffic there first.
In other words, create a page at www.myapp.com/redirect, and put the google tracker there (or, alternately, just append the referrer url to the query string manually). Then, redirect with javascript out to the Facebook canvas app URL. That way, the user ends up in the right place, and you get your referrer info as well.