How can we help you?

How should the comScore tag be structured for Facebook Instant Articles?

When tagging Facebook Instant Articles content, once configured please place the normal comScore page measurement JavaScript tag within an iFrame on each article using the Facebook Instant Articles Analytics element. In the case of Facebook Instant Articles, this must be included in the <body> of the article. For additional information on tagging within the Instant Articles platform, please refer to Facebook’s developers page at https://developers.facebook.com/docs/instant-articles/ads-analytics#analytics.

An example of tag deployment for Facebook Instant Articles is below. Please replace the c2 ID in the example below with your publisher specific c2 ID.

<figure class="op-tracker">
    <iframe>
        <!-- Begin comScore Tag -->
        <script>
          var _comscore = _comscore || [];
          _comscore.push({ c1: "2", c2: "1234567" });
          (function() {
            var s = document.createElement("script"), el = document.getElementsByTagName("script")[0]; s.async = true;
            s.src = (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js";
            el.parentNode.insertBefore(s, el);
          })();
        </script>
        <noscript>
          <img src="http://b.scorecardresearch.com/p?c1=2&c2=1234567&cv=2.0&cj=1" />
        </noscript>
        <!-- End comScore Tag -->
    </iframe>
</figure>
Was this article helpful?
0 out of 0 found this helpful

 

0 Comments

Article is closed for comments.