Swetrix

Swetrix

Swetrix is an open-source, privacy-first web analytics platform that collects usage metrics without cookies or personal data. Scripts track page views, referrers, UTM parameters, and custom events using anonymized data. Offers a self-hostable alternative to Google Analytics with GDPR compliance by design.

Overview

Swetrix is an open-source, privacy-first web analytics platform that tracks usage metrics without cookies or personal data. It offers a self-hostable alternative to traditional analytics tools.

What This Script Does

  • Tracks page views, unique visitors, and session duration without setting cookies
  • Captures referrer URLs, UTM parameters, and browser/device metadata
  • Records custom events defined by the site operator
  • Uses anonymized data collection methods that avoid storing personal identifiers
  • Makes network requests to Swetrix servers (or self-hosted instances) to transmit aggregated analytics data

Consent & Compliance

  • Category: Analytics
  • GDPR: Designed for GDPR compliance by default. Does not use cookies or store personal identifiers. May qualify for the analytics exemption under some interpretations of the ePrivacy Directive.
  • CCPA: Anonymized data collection minimizes personal information concerns.
  • ePrivacy: No cookies are set. Some data protection authorities consider cookieless analytics exempt from consent requirements, though interpretations vary.

Should You Block This Without Consent?

No. Swetrix is designed as a privacy-first analytics tool that does not use cookies or collect personal data. In most jurisdictions, it can run without prior consent. However, site operators in strict jurisdictions (e.g., France under CNIL guidance) may still choose to gate it behind analytics consent.

Visit website

Consent Categories

Analytics

Also Known As

Swetrixopen-source web analyticscookieless analyticsGoogle Analytics alternativeself-hosted analyticsGDPR analytics tool

Industries

Programming and Developer SoftwareComputers Electronics and Technology

Tracked Domains (1)

swetrix.orgAnalytics

Frequently Asked Questions

Do I need consent to use Swetrix analytics?

Swetrix is a privacy-first analytics tool that operates without cookies or personal data collection. In most jurisdictions, consent is not strictly required since Swetrix uses anonymized data methods. However, some stricter interpretations of ePrivacy may still require notice for any device-level data access.

What information does Swetrix collect from visitors?

Swetrix tracks page views, unique visitors, and session duration without setting any cookies. It captures referrer URLs, UTM parameters, and basic browser and device metadata. All data is anonymized and no personal identifiers are stored. Custom events defined by the site operator can also be recorded.

How does ConsentStack categorize Swetrix on my site?

ConsentStack detects Swetrix's analytics script and places it in the analytics category. Because Swetrix is cookieless and privacy-focused, ConsentStack can be configured to allow it without prior consent. If strict mode is enabled, ConsentStack will still gate the script behind the analytics consent toggle.

Related Vendors

Google
Google
Google is the dominant provider of web analytics, advertising, and infrastructure tools. Scripts like Google Analytics, Tag Manager, Ads, and reCAPTCHA collect behavioral data, manage tag firing, serve targeted ads, and detect bots. Sets persistent cookies to track users and correlate activity across sites.
Google Analytics
Google Analytics
Google Analytics is the world's most widely deployed web analytics platform. Scripts track page views, sessions, user demographics, traffic sources, and conversion events. Drops cookies to identify returning visitors and attribute user journeys across sessions.
Firebase
Firebase
Firebase is Google's mobile and web application development platform offering authentication, real-time database, cloud functions, and analytics. Web SDK scripts initialize Firebase services and may track app events via Firebase Analytics, which is powered by Google Analytics 4. Widely used in single-page apps and PWAs for backend infrastructure and usage tracking.
Microsoft
Microsoft
Runs Clarity (session recording and heatmaps), the Microsoft Advertising UET tag (conversion tracking), and Bing's remarketing pixel. Clarity injects a recording script that captures mouse movements, clicks, and rage clicks. The UET tag fires conversion events to tie ad clicks to on-site actions across Microsoft's ad network.
Microsoft Dynamics 365
Microsoft Dynamics 365
Microsoft Dynamics 365 is a suite of CRM and ERP applications that integrates with websites through tracking scripts and embedded forms. Web tracking code captures visitor behavior, page views, and form submissions to build customer profiles and score leads. Sets cookies to identify returning visitors and attribute marketing touchpoints across sessions.
LinkedIn Insight Tag
LinkedIn Insight Tag
LinkedIn Insight Tag is a JavaScript tracking pixel for LinkedIn's advertising and analytics platform. The tag fires on every page view to collect URL, referrer, IP address, and device data for conversion tracking, website demographics reporting, and retargeting audience building. Sets cookies to identify LinkedIn members across advertiser websites.

Manage consent for Swetrix

ConsentStack automatically detects and manages Swetrix trackers so your site stays compliant with global privacy regulations.