Facebook's Instant Articles are HTML documents optimized for fast mobile performance within the Facebook mobile app. Upon integrating Chartbeat code on these pages, a new filter labeled 'Facebook IA' will appear under the Distribution module in your Real-Time Dashboard, displaying real-time traffic data for all visitors to your instant article pages.
Insert the following code snippet in the
<body> of your page HTML:
domain configuration variables in the above snippet should be assigned to your Chartbeat account id and site id, respectively.
Section, author, path, and page title variables should be populated by your Facebook IA feed CMS with page metadata that matches precisely the metadata sent from your standard website. If the Chartbeat code on your website utilizes our
useCanonicalDomain settings for our tracker to collect the canonical URL from your page HTML, your Facebook IA Chartbeat code should send the same canonical URL via the
path configuration variable. For example, if an article's canonical URL is
https://mysite.com/news/article-xyz.html, the path variable should be populated as follows in that page's Facebook Instant Article HTML:
_sf_async_config.path = 'mysite.com/news/article-xyz.html';
Chartbeat video tracking for Instant Article pages is unsupported at this time.
Upon a successful Chartbeat integration with your Instant Article pages, a new Facebook IA filter will appear in the left-hand side of your Real-Time Dashboard (screenshot below).
Select the Facebook IA filter in your Real-Time Dashboard to perform the following data QA checks:
Page titles are populating as expected
Hover over page titles in this list to view the canonical paths received from these pages. Alternatively, click into the article view and right-click the title to copy the link address
Check for duplicate page entries in this list, and identify the discrepant paths being received from these pages to determine the fix in your configuration settings
Open the section & author drop-down filters to ensure section & author data is populating as expected