Skip to content
Public stats Live

Traffic chart

Your daily visits as a small public chart, embedded wherever you like.

What it looks like Sample

The numbers here are samples. On your site, the widget shows your own totals.

What it shows

  • Your daily page views or visitors as a small chart.
  • Complete days only: today shows when it ends.
  • The last 7, 30 or 90 days.

What it stores

  • No personal data and no visitor identifier.
  • It sends nothing from the visitor’s browser.
  • It shows only totals and facts that your site already has.
Snippet · Traffic chart
<!-- once per page --><script defer  src="https://api.datavisitors.com/assets/dv-embed.js"  data-key="YOUR_INSTALL_KEY"></script><!-- where the widget goes --><div data-dv-widget="trafficchart"></div>

Put line 1 to 4 once per page. Put line 7 where the widget goes.

Options

Add an option to the widget line. Leave it out to use the default.

Name What it does Default
data-dv-widget Names the widget. Use trafficchart for this one. Default: trafficchart
data-heading Heading Default: None
data-metric Measure One of: pageviews (Page views), visitors (Visitors) Default: pageviews
data-days Range One of: 30 (30 days), 7 (7 days), 90 (90 days) Default: 30
data-path Pages Default: /
Audience Live

Trending pages

The pages people are reading right now, as a list you can drop in a sidebar.

Publishers, knowledge bases See the widget
Audience Live

Country reach

How many countries your readers came from, with their flags. A country counts only with five readers.

Blogs, newsletters, communities See the widget
Audience Live

Read-completion badge

What share of readers reach the end of an article, once twenty have read it.

Writers, documentation, long-form See the widget