Overview

Welcome to the Palace Tracker documentation!

What is Palace Tracker?

Palace Tracker is a lightweight, privacy-focused analytics tracking script that provides essential insights into user behavior on your website. It automatically tracks pageviews, custom events, scroll depth, and time spent on pages.

The tracker is designed to be simple to install, requiring just a single script tag in your HTML. It uses the sendBeacon API for reliable, fire-and-forget event tracking that doesn't impact page performance.

Key features include automatic pageview tracking, SPA support, custom event tracking with data attributes, click coordinate tracking, and privacy-compliant data collection.

Getting Started

To get Palace Tracker up and running:

  1. Add the tracking script to your HTML
  2. Configure the website ID
  3. Optionally add custom event tracking
  4. View your analytics data

Key Features

  • Automatic pageview tracking - No additional code needed
  • Single-page application support - Detects URL changes via history API
  • Custom event tracking - Track button clicks, form submissions, and more
  • Scroll depth tracking - Measure how far users scroll on each page
  • Time on page tracking - Automatic session duration measurement
  • Click coordinate tracking - Capture X/Y coordinates for click events
  • Privacy-focused - No cookies, respects user privacy
  • Lightweight - Minimal performance impact