Skip to content

News Break integration

News Break natively tracks in-app views for analytics, but it also supports third-party analytics scripts. Adding a Parse.ly script to a News Break RSS feed will surface that traffic under the aggregator referrer category.

Sample implementation

To add Parse.ly tracking to your News Break feed, review the code snippet below. Update your article template to provide the following dynamic updates:

  1. Replace the url value with the article’s canonical URL.
  2. Replace YOUR-PARSELY-SITE-ID with your Site ID.
<nb:scripts><![CDATA[
  <script>
    PARSELY = {
      autotrack: false,
      onload: function() {
        PARSELY.beacon.trackPageView({
          url: 'https://www.yoursite.com/your-article/',
          urlref: 'https://newsbreak.com/'
        });
      }
    }
  </script>
  <script id="parsely-cfg" src="//cdn.parsely.com/keys/YOUR-PARSELY-SITE-ID/p.js"></script>
]]></nb:scripts>

After making the updates, copy the script and insert it into according to the News Break’s RSS feed specification document.

<rss version="2.0" xmlns:nb="https://www.newsbreak.com/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <item>
      <!-- standard feed fields -->
      <title>Your Article Title</title>
      <link>https://www.yoursite.com/your-article/</link>
      ...

      <!-- Parse.ly tracking block -->
	  ...

    </item>
  </channel>
</rss>

Last updated: August 07, 2026