How to set up NewsCred’s Analytics tracking on your Website


Accessing NewsCred’s Analytics platform only requires a small piece of JavaScript code that takes minimal effort to install. Doing so activates content-centric analytics tracking in NewsCred’s CMP. The tracking code that appears in the CMP is unique to your site. Gaining a clear understanding of your performance with content-centric analytics will ultimately allow you to make faster, smarter decisions around your content marketing program.


This guide will walk you through the steps needed to place the JavaScript Snippet on the main page of your site hosting NewsCred content. Please make sure you have access to make edits to your website through a Content Management System (CMS) or directly in the website code. If not, you’ll need to work with a web developer or someone in IT, who can install the JavaScript Snippet for you. If you are a web developer this guide is for you.

1. Copy your JavaScript Snippet from the CMP. It will look just like the code in this box (don't copy or use this snippet, it's just an example). It starts with <script> and ends with </script>.

<script src=""></script>


2. Paste your Snippet

Log into your CMS and access your site’s HTML code. Paste your snippet (unaltered and in its entirety) into the header of your site’s main page.

Paste the snippet immediately before the closing </head> tag.

Some CMS’s have a separate section where you can easily add your tracking code. Make sure that you look into your CMS’s setup to ensure proper installation (see below for some common CMS’s that we integrate with).


There are two easy ways to add the tracking code to WordPress.

Method 1: Plugins (Recommended)

There are a variety of plugins available to add custom header and footer codes to your site. A simple light-weight plugin that we recommend is Insert Headers and Footers. Paste your tracking code snippet into the header on the plugin’s settings page.

Method 2. Paste Directly into Header

Open up the editor for the header.php file. Paste the snippet right before the closing </head> tag.


Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request


Powered by Zendesk