如何使用 Google Analytics 跟踪 Facebook 即时文章的内容统计数据 [英] How to track content Statistics for Facebook Instant Articles with Google Analytics

查看:26
本文介绍了如何使用 Google Analytics 跟踪 Facebook 即时文章的内容统计数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我们已经在脸书.

Hello we have setup the Facebook Instant Articles feeds in facebook.

Facebook 面向发布商的即时文章功能(目前主要在 FB iOS 应用程序上推出,2016 年 3 月 30 日)允许通过 Google Analytics 代码进行跟踪.但是,即使按照指示实施 GA 代码,我们也无法找到推荐人或GA 中 FB 即阅文的其他信息.任何人都可以帮助我了解在 GA 中究竟在哪里可以找到有关 Facebook Instant Articles 内容消费的信息?它会显示为推荐来源还是主机名?即阅文在 FB 内打开.

Facebook's Instant Article feature for publishers (rolled out on FB iOS apps mostly for now 30 3 2016) allows tracking by Google Analytics code. However, even after implementing GA code as instructed, we are not able to locate the referral or other info of FB Instant Articles in GA. Can anyone help me understand where exactly to find information in GA about content consumption on Facebook Instant Articles?? Will it appear as a referral source or a hostname? Instant Articles open inside FB.

推荐答案

根据他们的文档 https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingCampaigns#generalCampaign 可以通过分析脚本设置来源、媒介和标题.鉴于FB应用上IA的页面标题为空,需要设置标题.

According to their documentaion https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingCampaigns#generalCampaign It is possible to set the source, medium and title through the analytics script. the title it is needed to be set given that the page title for the IA on the FB app is null.

请注意代码中的大写字母应该使用静态或动态值更新.

PLEASE NOTICE THE CAPITAL LETTERS in the code are supposed to be updated with you static or dynamic values for it.

<figure class="op-tracker"> 
    <iframe hidden>
        <script>
            (function (i,s,o,g,r,a,m) {i['GoogleAnalyticsObject']=r;i[r]=i[r]||function () {(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),                         m=s.getElementsByTagName(o)0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-   analytics.com/analytics.js','ga');
            ga('create', 'ANALYTICS ID', 'auto');
            ga('require', 'displayfeatures');
            ga('set', 'campaignSource', 'Facebook');
            ga('set', 'campaignMedium', 'Social Instant Article');
            ga('set', 'title', 'POST TITLE OR THE TITLE YOU WANT'); 
            ga('send', 'pageview');
        </script>
    </iframe>
</figure>

再次请注意,大写的单词将替换为您的实际值.好好享受.

Again, Please Notice That THE CAPITALIZED WORDS are to be replaced by your actual values. Enjoy it.

这篇关于如何使用 Google Analytics 跟踪 Facebook 即时文章的内容统计数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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