Facebook Instant Implementation

 

Pages using Facebook's Instant Articles require a few tweaks.

IMPLEMENTING FACEBOOK INSTANT 

Please include the SimpleReach code in an iframe tag within a figure class="op-tracker" tag as in the example below. There is no need to include the url field, as Facebook populates this for you, however the ref_url field should be set to Facebook's URL as in the example below so that we can properly attribute referral traffic from Facebook. For more information on setting up Facebook Instant, please visit Facebook Instant Articles Documentation.

Please note that if you already have a Standard or other implementation, all content fields (title, date, authors, channels, tags) must match across implementations for a given article. 

EXAMPLE

<figure class="op-tracker"> 
 <iframe>
   <script>
     __reach_config = {
       pid: '$pid',
       title: '$title',
       date: '$publication_date',
       authors: ['$author'],
       channels: ['$chan1'],
       tags: ['$tag1','$tag2'],
       ref_url: 'https://www.facebook.com/', 
       ignore_errors: false
     };
     (function(){
       var s = document.createElement('script');
       s.async = true;
       s.type = 'text/javascript';
       s.src = document.location.protocol + '//d8rk54i4mohrb.cloudfront.net/js/reach.js';
       (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(s);
     })();
   </script>
 </iframe>
</figure>