If you are adding new Chartbeat code to a website, we recommend first adding our code in a controlled QA/staging environment. The recommended way to handle this is to have the
domain value in your Chartbeat tag set to your staging site ID (e.g. staging.mysite.com) when running on staging, and your production site ID (e.g. mysite.com) when in production.
So the production code line would be:
_sf_async_config.domain = "mysite.com";
And the staging code would be:
_sf_async_config.domain = "staging.mysite.com";
This way, traffic data from your integration QA tests will stay confined in a separate test site in Chartbeat.
Our Real-Time dashboard lets you see current activity on your site. If this view shows data after adding our tag to your site and loading your webpage in a browser, then your snippet is collecting data and sending it to Chartbeat as expected. This dashboard displays activity for specific pages, so if you haven’t added the snippet to all pages on your site, you can check check to see whether the snippet is sending data from the pages you have tagged.
To check out your Real-Time dashboard:
Sign in to your Chartbeat account.
From the Sites page, find the site you've recently implemented, hover over the site entry to reveal the 'Real-Time' button, and select it.
Here are some useful QA steps to ensure proper tracking:
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
Other Real-Time QA Checks
Open the section & author drop-down filters to ensure section & author data is populating as expected
Check the Device module in the left-hand column to ensure data is tracking for visitors viewing your site across unique device types
You can use your browser's site inspector tools to monitor network activity from your site, filtering on "chartbeat" to view all chartbeat related scripts loading on the page, or on "ping?" to find requests to URLs beginning with ping.chartbeat.net.
Upon loading a page of your site, you should be able to view the requests here for chartbeat_mab.js (if you've included our headline testing code), chartbeat.js (or chartbeat_video.js), and the subsequent pings to our servers every 15 seconds, carrying most of the data we collect from your site.
Clicking into one of these ping requests to ping.chartbeat.net in DevTools will display a list of the included query string parameters in this call which contain data determined by the configuration variables in your code snippet. Below is a ping key that describes some of these query string fields that are important to check for in your review.
The site id, or "host" where your site's traffic data will appear in your Chartbeat account. This string is pulled from the value assigned to the
The page's path. This string should match your pages' canonical URL paths if your snippet sets
With this key, we collect the actual domain of your page, which may be different from the h-key host/site name in your Chartbeat account. If
Account ID, pulled from the value assigned to
A comma-delimited list of sections received from the page via the
A comma-delimited list of authors received from the page via the
Page title. Only appears in the very first ping from each unique page session on your site.
Will carry the referring URL of the current pageview IF the referring page is an external site.
Will carry the referring URL of the current pageview IF the referring page is your own site.
Unique identifier for the page-session. Each unique t-key value represents a separate pageview in your Chartbeat data.
Your website integration is now complete! 🎉
We're starting to automatically collect even more metadata about your webpage content to power our next generation products. Review the final page of this guide to get a head start on what's next for Chartbeat.