Spindl
  • 👋Overview
    • Introduction
    • Attribution
    • Privacy
  • Your Spindl app setup
    • Managing team members
  • 🪄Features
    • 📈Onchain Attribution
      • 📉Plotting attribution
    • 📊Web3-native Analytics
      • Chart Builder
      • Event Selection and Filtering
      • Line Chart
      • Funnel
      • Cohort Retention
      • Sankey Diagram
      • Big Numbers
      • Pies and Donuts
    • 🧍‍♂️Audiences
      • Creating an audience
    • 🔗Short Links
      • 🖇️Custom Domains
    • 🤝Referrals
      • Management and reporting
      • ⏩Quick Start
      • ⛓️Technical Details
  • ⚙️Techncial
    • ⏩Start Here
    • Google GTM Guide
    • Javascript SDK / HTML Script Guide
      • ➡️Install
      • ➡️Wallet Connects
      • ➡️Page Views
      • ➡️Custom Events
      • ✅Verify That Events Are Sent Correctly
      • React, Next.js & Html Examples
      • Setup a Reverse Proxy
        • Using Next.js
        • Using Cloudflare Workers
        • Netlify
      • ➡️Referrals
      • Default vs Lite SDK Versions
      • Security
    • API
      • ➡️Short Links
      • ➡️Custom Events API
      • Data Exports
    • Android SDK
    • iOS (Swift) SDK
    • On-Chain
      • ➡️Rewards
  • Contact Spindl
  • Ads
    • ⏩Start Here
    • 📢Creative Specifications
      • Web Banner Ads
      • Discord Embeds
Powered by GitBook
On this page
  • 1. Automatic Page View Tracking
  • 2. Manual Page View Tracking
  1. Techncial
  2. Javascript SDK / HTML Script Guide

Page Views

PreviousWallet ConnectsNextCustom Events

Last updated 8 months ago

Instrumenting Page View lets you visualize user flows and sessions within the Spindl App. These are optional, but give you more insight into user journeys and sources of traffic.

Spindl supports two modes for Page View tracking:

1. Automatic Page View Tracking

You can initialize this once in the app, and Spindl will log Page View events automatically:

spindl.enableAutoPageViews();
window.spindl.enableAutoPageViews();
  • Check out our to see how it's implemented in different contexts in Next.js/React or HTML

2. Manual Page View Tracking

You can call this method manually on every page load.

spindl.pageView();
window.spindl.pageView();
⚙️
➡️
examples repo