Skip to content
Blog

Analytics

Analytics in Tribe are private by design. No cookies, no personal data collected, and therefore no consent banners cluttering up your site. Pageviews start tracking the moment the SDK loads, and custom events are a single line of code away when you want to go deeper.

  • Pageviews record every page load and SPA navigation automatically
  • Visitors are counted using anonymous IDs rather than cookies, giving you unique visitor numbers without invasive tracking
  • Time on page tells you how long people actually spend reading or interacting with each page
  • Bounce rate shows the percentage of visits where someone lands on a single page and leaves
  • Top pages surfaces your most visited pages
  • Countries provides a geographic breakdown of where visitors are coming from
  • Devices breaks down traffic by browser, operating system, and device type
  • Custom events let you track anything you can think of using tribe.track()

With default settings (autoTrack: true), the SDK picks up pageviews without any extra work:

import { Tribe } from "@tribecloud/sdk";
// This is enabled by default — no extra code needed
const tribe = new Tribe({ siteId: "YOUR_SITE_ID", autoTrack: true });

Under the hood, auto-tracking hooks into:

  • Initial page load
  • history.pushState (React Router, Vue Router, etc.)
  • popstate events (browser back/forward)
  • visibilitychange (tracks time on page when the user leaves)

If you’d rather handle things yourself, turn it off:

const tribe = new Tribe({ siteId: "YOUR_SITE_ID", autoTrack: false });

Tribe analytics deliberately avoids storing personal data of any kind:

  • No cookies are set. An anonymous ID lives in localStorage instead
  • No IP storage occurs. IPs help derive geolocation data, then they’re discarded
  • No fingerprinting techniques are used to identify browsers
  • No PII like emails, names, or other identifiers ever gets stored

Because nothing personally identifiable is collected, most jurisdictions won’t require a cookie consent banner.

The Tribe dashboard is where it all comes together visually. You can explore:

  • Real-time visitor count
  • Pageview and visitor trends over time
  • Top pages with view counts
  • Country breakdown
  • Average session duration and bounce rate