Skip to content
Last updated: 2026-04-06
Reference

Built-in Analytics

Dxtra Tag Manager includes privacy-first analytics at no additional cost. Analytics tracks page views, custom events, and visitor metrics without cookies or personal data collection.

Installation Options

Full Tag Manager (Includes Analytics)

When you install the complete Tag Manager script, analytics runs automatically:

HTML
<script src="https://tagmanager-edge.dxtra.ai/tm.js" async></script>

Analytics-Only

For lightweight analytics without the tag management rule engine:

HTML
<script src="https://tagmanager-edge.dxtra.ai/analytics.js" async></script>

With SPA and hash routing support:

HTML
<script src="https://tagmanager-edge.dxtra.ai/analytics.js?opts=spa,hash" async></script>

The analytics-only script is under 5KB with no external dependencies.

What Gets Tracked

Automatic Tracking

With default settings enabled, Dxtra Analytics automatically tracks:

  • Page views -- recorded on each page load (and SPA route changes if enabled)
  • Referrer information -- where visitors came from
  • UTM parameters -- campaign attribution (utm_source, utm_medium, utm_campaign, utm_term, utm_content)
  • Device and browser information -- type, OS, browser, screen resolution
  • Geographic data -- country and city (derived from IP, which is not stored)

Custom Events

Track business-specific actions using the analytics API:

JavaScript
window.dxtraAnalytics.track('event_name', {
  key: 'value'
});

Examples:

JavaScript
// Purchase event
window.dxtraAnalytics.track('purchase', {
  transaction_id: 'T-12345',
  value: 99.99,
  currency: 'USD'
});

// Form submission
window.dxtraAnalytics.track('form_submit', {
  form_name: 'newsletter_signup'
});

// File download
window.dxtraAnalytics.track('file_download', {
  file_name: 'product_brochure.pdf',
  file_type: 'pdf'
});

Analytics Dashboard

The analytics dashboard in Tag Manager provides:

Key Metrics

  • Current Visitors -- active sessions in the past 5 minutes
  • Page Views -- total page loads across all visitors
  • Unique Visitors -- individual visitors (privacy-preserving, resets every 24 hours)
  • Bounce Rate -- percentage of single-page visits
  • Visit Duration -- average time between first and last event per session

Reports

  • Top Pages -- most viewed pages with visitor counts and bounce rates
  • Entry Pages -- where visitors land on your site
  • Exit Pages -- where visitors leave
  • Referrers -- traffic sources (direct, search, social, other sites)
  • UTM Campaigns -- marketing campaign performance
  • Geography -- visitor distribution by country and city
  • Technology -- browser, OS, device type, and screen resolution breakdowns

Time Period Analysis

  • Flexible date ranges (today, last 7/30/90 days, custom range)
  • Period comparison (e.g., this month vs. last month)
  • Trend charts showing traffic patterns

Privacy Design

Dxtra Analytics is GDPR/CCPA compliant by design:

  • No cookies used for visitor identification
  • No personal data collected or stored
  • No cross-site tracking -- visitors are unique only within your site
  • IP addresses not stored -- used only for geographic lookup, then discarded
  • 24-hour visitor hashing -- privacy-preserving unique visitor counting that resets daily
  • No third-party data sharing -- analytics data stays within your Dxtra account

Data Retention

Configure retention periods in Analytics Settings:

Data Type Default Retention
Raw event data 13 months
Aggregated data 50 months
Visitor identifiers 24 hours (automatic)

SPA Support

Dxtra Analytics automatically detects most single-page application navigation. For manual control:

JavaScript
// Track a virtual page view in an SPA
window.dxtraAnalytics.track('page_view', {
  page_location: window.location.origin + '/new-route',
  page_title: 'New Page Title'
});

Use the ?opts=spa query parameter on the script URL to enable automatic SPA route detection, or ?opts=spa,hash to also track hash-based routing (#/page).

Troubleshooting

Issue Solution
No data appearing Verify script loads without errors in browser console. Data has a 60-second processing delay.
Incorrect page counts Check for duplicate analytics scripts. Verify SPA route tracking configuration.
Events not recording Confirm window.dxtraAnalytics.track() syntax. Check browser console for errors.
Testing traffic mixed in Use a separate Tag Manager environment for development.

Enable debug logging in the browser console:

JavaScript
window.dxtraAnalyticsDebug = true;

Continue to Analytics Integration for integrating with third-party analytics platforms.