如何跟踪内容Facebook统计资料Google Analytics(分析)的即时文章 [英] How to track content Statistics for Facebook Instant Articles with Google Analytics

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

问题描述

您好,我们已经在
facebook中设置了Facebook即时文章Feed。

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

Facebook的即时文章功能适用于发布商(现在推出的FB iOS应用程序) 30 3 2016)
允许通过Google Analytics(分析)代码进行跟踪。
但是,即使在按照指示实施GA代码后,我们也无法在GA中找到FB 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.

<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>

工作完美。请注意,资本主义将由您的实际价值取代。好好享受。

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

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

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