Facebook Instant Articles

Parse.ly is collaborating with Facebook to enable tracking of Facebook Instant Articles. To implement Parse.ly tracking on your Facebook Instant Articles, please take the following steps:

Make sure that your Facebook Instant Articles are currently configured and being served properly, including your RSS feeds. For more information on this, please visit Facebook’s Instant Articles documentation.

There is no need to implement metadata on the Facebook Instant Articles because there must be a version of the article already existing on your website. Make sure to use the correct canonical url of the existing article, and we will automatically associate that metadata with the Facebook Instant Article version. Here is an example of the canonical URL link in your Facebook Instant Articles source code:

<link rel="canonical" href="https://blog.parse.ly/post/2109/meet-espns-benjamin-alamar/">

Once your Facebook Instant Articles are error-free, please place the following code snippet on the page before the closing </article> tag. For more help on proper tracking formatting if necessary, please visit Facebook’s developers page on analytics tracking here.

<!-- Analytics code for your article -->
<figure class="op-tracker">
    <iframe>
        <script>
            PARSELY = {
                autotrack: false,
                onload: function() {
                    PARSELY.beacon.trackPageView({
                        urlref: 'http://facebook.com/instantarticles'
                    });
                    return true;
                }
            }
        </script>
        <div id="parsely-root" style="display: none">
            <span id="parsely-cfg" data-parsely-site="###########"></span>
        </div>
        <script>
            (function(s, p, d) {
            var h=d.location.protocol, i=p+"-"+s,
            e=d.getElementById(i), r=d.getElementById(p+"-root"),
            u=h==="https:"?"d1z2jf7jlzjs58.cloudfront.net"
            :"static."+p+".com";
            if (e) return;
            e = d.createElement(s); e.id = i; e.async = true;
            e.src = h+"//"+u+"/p.js"; r.appendChild(e);
            })("script", "parsely", document);
        </script>
        <!-- END Parse.ly Include: Standard -->
    </iframe>
</figure>

Note

Replace ########### with the apikey of your site.

The tracking code must be placed on all of the FB Instant Articles you wish to track whether you are manually uploading the articles or whether they're being syndicated via Facebook's preferred RSS feed. For more details on automated RSS feed content publication, please visit Facebook's documentation here.

FAQ

How can I verify that my FB Instant Articles are tracking properly in Parse.ly?

If you navigate to the post detail page in Parse.ly's Dash of an article which you know has a FB Instant Article variant with traffic and click on the dropdown next to 'facebook.com' under the 'Referrers' section, you should see 'facebook.com/instantarticles' as one of the domain referrers that appears. This is an indicator that FB Instant Article traffic is being tracked properly. Feel free to contact our support team at support@parsely.com for further verification of your FB Instant Article tracking implementation.

Do you have an urgent support question?