viakite
Dashboard

Guides/Use cases/Blogs, docs and marketing sites

Blogs, docs and marketing sites

Pages, sources, Google searches and reading depth

You publish: a blog, product docs, a landing page, a marketing site. You want to know which pages people read and how far, where they come from (search, social, AI assistants, your newsletter), what they searched on Google to find you, and which links send them away. All of it comes from one script tag, with no cookies.

Who it's for

Writers, marketers, developer-relations and docs teams, and anyone whose site is mostly pages to read.

What you get

FeatureWhat it answersGuide
PagesTop, entry and exit pages, time on page and scroll depth; page groups such as /blog/*Pages
SourcesChannels (search, social, AI assistants, email), referring sites and UTM campaignsSources
Search ConsoleThe Google queries and pages that brought visitors, with clicks, impressions and positionSearch
Scroll depthHow far down each page people read, sent on its ownPages
Outbound links and file downloadsWhich links and files people click, sent on their ownEvents
Broken pages and site search404s and the pages that linked to them; searches with no resultsJourneys, broken pages and search
HeatmapsWhere people click and how far they scroll, on an extra scriptHeatmaps
Email reportsLast week's numbers every Monday, to anyoneEmail reports

Set it up

  1. Add the script

    Copy the snippet from Analytics → Install into the <head> of every page:

    index.html
    1<script defer src="https://us.api.vk.viabio.me/v1/a.js" data-project="pk_live_us_…"></script>

    The Install screen also has snippets for WordPress, Shopify, Webflow and the frameworks. Page views, engaged time, scroll depth, outbound links and file downloads are now sent on their own.

  2. Mark your 404 page

    On a static not-found page, add data-404 to the script, so broken links show in Broken pages with the pages that linked to them:

    404.html
    1<script defer src="https://us.api.vk.viabio.me/v1/a.js" data-project="pk_live_us_…" data-404></script>
  3. Tag the links you share

    Add UTM parameters to links in newsletters, posts and ads. They show on the Sources page's Campaigns card:

    1https://yoursite.com/blog/launch?utm_source=newsletter&utm_medium=email&utm_campaign=november
  4. Connect Google Search Console

    Open Analytics → Search and click Connect Google Search Console, then pick the property and click Import this property. The last few days arrive within the hour, and your history (as far back as your plan keeps, up to 16 months) within a day.

  5. Group pages and count sign-ups

    In Analytics → Settings → Page groups (or Edit groups on the Pages screen's card), save groups such as Blog for /blog/* and Docs for /docs/*; the Pages screen then shows each group's views, visitors, time on page and exits. If you have a newsletter form, send an event when it succeeds and make it a goal in Analytics → Goals:

    newsletter.js
    1viakite.track("Newsletter signup", { form: "footer" });
  6. Get the weekly report

    In Analytics → Analytics settings → Email reports, switch on Weekly report and add the addresses. Every Monday at 9:00 they get visitors, page views, bounce rate and visit duration against the week before, with the top 5 pages and sources.

What to watch

  • Scroll depth and time count only page views with engagement: someone who leaves within a second sends none.
  • Search Console is Google's numbers. It doesn't know your visitors, so the page's other filters don't apply to it, and Google leaves out rare queries.
  • Outbound links and downloads show as events on the Events page; they have no report of their own yet. Turn them off with data-outbound="false" or data-downloads="false".
  • Heatmaps need a second script, h.js, next to a.js; see Heatmaps.
  • Your plan. Free counts 1M events a month and keeps 30 days; Pro 5M and a year. See Plans and billing.