Profile Score: 0
Top Interests: -

Welcome to gtoAnalytics Demo

This is the main dashboard. Navigation between sections will trigger interest tracking.

1. Scroll Depth Tracking

Scroll down to see the score increase.

Scroll Area

Technology Section

Browsing this section increases interest in Technology, Gadgets, and Software.

Tag Management

Manually manage visitor tags:

Current Tags: -

2. Augmented Reality

[Tech Content Image]

Science Section

Exploring this section adds Science, Space, and Physics to your interest profile.

Biological Research

This box has its own specific category: Biology.

Sports Section

This section is all about Sports, Football, and Health.

Visitor Profile

This view shows the raw and normalized data stored in your client-side profile.

Normalized Performance Metrics

Intensity
0
Points / Minute
Loyalty
0
Points / Visit
Tenure
0
Points / Day

Interest Concentration (%)

No data yet

Raw Profile Data


        

Debug Tools

Use this to clear all tracking data and start fresh.

SDK Documentation

Learn how to use and interact with the gtoAnalytics SDK.

1. Integration

Add the SDK to your page using a standard script tag:

<script src="dist/gtoAnalytics.js"></script>

2. Engagement Scoring

Scores are awarded based on user behavior:

3. Interest Tracking

Interests are tracked via data-categories attributes on elements or meta tags.

<div data-categories="technology, gadgets">...</div>

You can also manually trigger a scan for new content (e.g., in SPAs):

window.gtoAnalytics.trackInterests(element);

4. Understanding Normalized Metrics

Normalized metrics allow you to compare visitors fairly, regardless of their total time or visit count.

5. SDK Configuration

Important: Define window.GTO_ANALYTICS_CONFIG before including the SDK script tag to ensure settings are applied correctly during initialization.

window.GTO_ANALYTICS_CONFIG = {
  scoreThreshold: 20, // Points increment to trigger sync
  timeThreshold: 60,  // Max seconds between syncs
  syncOnExit: true,   // Final sync on page leave
  scoring: {
    scrollPoints: 2, timePoints: 2, timeInterval: 10,
    mousePoints: 2, mouseMileageThreshold: 100000,
    touchPoints: 2, touchTapThreshold: 10, videoPoints: 2
  },
  urlTracking: {
    enabled: true,  // Extract categories from URL path
    offset: 0       // Path segments to skip
  },
  onSync: async (profile) => {
    // Optional: Custom data transport hook
  }
};

Set the default API endpoint via window.GTO_ANALYTICS_API_URL.

6. API Reference

Method Description
addTag(tag) Adds a persistent tag to the profile.
removeTag(tag) Removes a tag from the profile.
resetProfile() Clears all data and starts fresh.
syncProfile(force) Triggers a sync. Set force=true to bypass thresholds.
onSync(profile) Custom hook in GTO_ANALYTICS_CONFIG to handle sync externally.
getNormalizedMetrics() Returns intensity, loyalty, and tenure metrics.