Welcome's analytics are unique in the fact that they are content-centric. This means that they are able to give more granular, meaningful insights from your content in a way that typical site analytics cannot. It offers more visibility and better data for you to continue to make the best decisions for your content marketing strategy. All it takes is a small script in the header of your article pages. We track engagement for each page containing content, which includes any format.
This article will guide you on:
It will look just like the example code below, starting with an open <script> tag and and ending with a close </script> tag:
<script async src="//analytics.newscred.com/analytics_6403770ce04a4f378e91b84f19c7c538.js"></script>
Copy this snippet and proceed with installing it to your site in one of the following ways:
Adding the Snippet via a CMS
Log into your CMS and access your site’s HTML code. Paste your snippet (unaltered and in its entirety) into the site header. Paste the snippet immediately before the closing </head> tag. Some CMS’s have a separate section where you can easily add a tracking code like. If you are unsure of your site's specific configuration, reach out to your web production or development team. Welcome Support is available to you and these teams if you have any questions or require additional assistance.
Adding the Snippet via WordPress
There are two easy ways to add the tracking code to WordPress:
Option 1: Plugins (Recommended). There are a variety of plug-ins available to add custom header and footer codes to your site. A simple, light-weight plug-in that we recommend is Insert Headers and Footers. Paste your tracking code snippet into the header on the plugin's settings page.
Option 2: Paste directly into the header. Open up the editor for the header.php file. Paste the snippet right before the closing </head> tag.
Adding the Snippet via Google Tag Manager (GTM)
Note: Follow these instructions only if you already have a working configuration of GTM on your website. This means you have copied and pasted your GTM’s code snippets into your website as instructed in the Install Tag Manager box. Instructions for this can be found directly on Google’s Support site.
From your GTM container, create a new Tag:
Give your new Tag a name and set Tag Type to Custom HTML. In the HTML field, paste your unique analytics snippet (including the opening and closing <script> tags). In the Triggering section at the bottom, add a new Firing Trigger for All Pages. Save your tag.
Push this Tag (i.e. the Welcome JS) live by first hitting Submit on the main workspace page. Include Version Name and Description and hit Publish to complete.
Frequently Asked Questions
Will this impact the performance of my site?
The JS script loads from a CDN and is only 7.5KB in size; additionally, it loads asynchronously, so page load speeds should not be impacted by placing the script in the header. However, if your team has multiple scripts in the header, the script can also be placed in the footer with little-to-no impact on load time or tracking.
What is a Tracking Pixel?
A tracking pixel is a code that uses a 1x1 pixel to track different user engagements through an HTML img tag. The code is inserted into the pages of third party websites right below the article's description. The pixel fires a request when a visitor loads the page and the request is logged as a page view.
Why does Welcome use Tracking Pixels?
The tracking pixel collects data by firing when the page loads. It can be used to count pageviews and unique visitors. Below is an example of our tracking pixel:
<img src="https://pixel.welcomesoftware.com/px.gif?key=YXJ0aWNsZT04MDExODkxYzAxZGRhNjQ4MWZiYjBiZjY5NDBkN2M0Mg==" alt="" height="1" width="1" class="nc_pixel"/>
Tracking pixels vary by URL. You can see them from any tasks that are also opened from the "Tasks" section.
Go to any of your tasks. Click on the three dots as shown, then click on 'More'; then finally click on 'Copy Tracking Pixel' to copy it onto your clipboard.
How do I know if the Tracking Pixel is working?
If the tracker is working, it will show a 200 status. To find this, go to your article (it must be published through our CMP) page on your website, right click your mouse and inspect the page in developers mode. It will look like the below
After opening the developer's tool, you will need to reload the page by hitting F5. As you can see in the image above, you will need to be in the 'Network' tab and search for 'Pixel.' If you see '200' in the 'Status' column, then the tracking code is working correctly. If you want more details, search for 'Tracker' and click on it.
Questions? Contact email@example.com.