Chartbeat Destination

Segment makes it easy to send your data to Chartbeat (and lots of other destinations). Once you've tracked your data through our open source libraries we'll translate and route your data to Chartbeat in the format they understand. Learn more about how to use Chartbeat with Segment.

Our Chartbeat destination code is open-source on GitHub if you want to check it out.

Getting Started

When you toggle on Chartbeat in Segment, this is what happens:

  • Our CDN is updated within 5-10 minutes. Then our snippet will start asynchronously loading chartbeat.js onto your page. This means you should remove Chartbeat’s snippet from your page.
  • Your Chartbeat real-time dashboard will start showing live concurrent visitors.

Chartbeat is only supported on the client-side.


Page

The page method in Analytics.js will call Chartbeat’s virtualPage function with either the Url you provide or the current window’s pathname. Use the page method if you have a one-page app that doesn’t reload the browser page between views.

You can also set a section and author for each page. For example, analytics.page('putSectionHere', 'putNameOfPageHere', { author: 'putAuthorNameHere' }.


Supported Sources and Connection Modes

WebMobileServer
📱 Device-based
☁️ Cloud-based

To learn more about about Connection Modes and what dictates which we support, see here.

Settings

Segment lets you change these destination settings via your Segment dashboard without having to touch any code.

Domain

The same domain name you entered when adding your site’s dashboard to Chartbeat. Don’t include the www. because Chartbeat handles that for you automatically.

UID

You can find your UID on the Chartbeat Adding The Code page.

Use Chartbeat Video Script

If you select this option, we’ll load chartbeat_video.js instead of chartbeat.js. The video library has the ability to listen for play/pause events from HTML5 video tags and common 3rd party video players.


If you have any questions or see anywhere we can improve our documentation, please let us know or kick off a conversation in the Segment Community!