StageUp
Web SDKEvents

Event System Overview

The AdStage Web SDK event system captures user interactions and powers Segments and Funnels for data‑driven decisions.

🎯 What Is the Event System?

It records meaningful actions in your web app: button clicks, page views, purchases, signups—everything you want to analyze.

📊 What You Can Learn

1. Segment Analysis

Automatically group users who share behaviors or attributes:

  • Event‑based Segments – Users who performed a specific event
  • Behavioral Segments – Pattern & frequency based
  • Attribute Segments – Country, device, age range, etc.

Examples:

  • Users who clicked a purchase CTA but didn’t complete checkout
  • Active users who visited 3+ times in 7 days
  • Mobile users aged 20–30

2. Funnel Analysis

Understand step‑by‑step progression toward goals.

  • Conversion Rates – Completion vs drop‑off per step
  • Bottleneck Detection – Where users abandon flows
  • Segment Comparison – Funnel performance by user group

Examples:

  • Signup funnel: Landing → Form → Email Verify → Complete
  • Purchase funnel: Product View → Cart → Checkout → Paid
  • Content funnel: Visit → Read → Comment → Subscribe

🚀 Basic Tracking

// SDK init
AdStage.init({
  apiKey: 'your-api-key'
});
 
// Track a simple event
AdStage.events.track('button_click', {
  button_id: 'purchase_btn',
  page: '/product',
  value: 29.99
});
 
// Set user properties
AdStage.events.setUserProperties({
  gender: 'male',
  country: 'KR',
  city: 'Seoul',
  age: '25-34'
});
 
// Set user ID
AdStage.events.setUserId('user_12345');

All collected events feed into Segments and Funnels in the AdStage dashboard for aggregated behavioral insight.

Table of Contents