> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getjasin.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Analytics

> Track views, clicks, and conversion rates with advanced bot detection

## Overview

Jasin provides real-time analytics for all your embed cards with advanced bot detection and
performance insights. Data updates automatically as users interact with your embeds.

***

## Key Metrics

<CardGroup cols={2}>
  <Card title="Views" icon="eye">
    Total number of times your embed cards were displayed
  </Card>

  <Card title="Clicks" icon="arrow-pointer">
    Number of users who clicked through to Amazon
  </Card>

  <Card title="CTR" icon="percent">
    Click-through rate (clicks ÷ views × 100)
  </Card>

  <Card title="Revenue" icon="dollar-sign">
    Estimated affiliate commissions (Pro and Pro Plus tiers)
  </Card>
</CardGroup>

***

## Real-Time Dashboard

### Data Filters

* **Time Ranges**: View data for today, last 7 days, this month, or custom date ranges
* **Top Performers**: See which products are generating the most engagement

### Bot Detection

Our advanced bot detection system filters out non-human traffic:

<AccordionGroup>
  <Accordion title="Detection Methods">
    * **User-Agent Analysis**: Identifies known bot signatures
    * **Behavioral Patterns**: Detects automated interaction patterns
    * **IP Reputation**: Filters traffic from known bot networks
    * **JavaScript Execution**: Requires JavaScript for view tracking
  </Accordion>

  <Accordion title="Bot Categories">
    * **Search Engines**: Google, Bing, Yahoo crawlers - **Social Media**: Facebook, Twitter, LinkedIn
    * **Monitoring**: Uptime monitors and site checkers - **Malicious**: Scrapers and spam bots
  </Accordion>

  <Accordion title="Filtering Options">
    * **Free Tier**: Basic bot filtering included
    * **Pro Tier**: Advanced filtering with detailed categorization
    * **Pro Plus Tier**: Enhanced filtering with additional insights
  </Accordion>
</AccordionGroup>

***

## Tracking Implementation

### Automatic Tracking

The embed script automatically tracks views and clicks:

```html theme={"system"}
<!-- Jasin embed script (automatically generates the card) -->
<script
  async
  src="https://getjasin.com/loader.js"
  data-id="2d19689e-d85c-4837-b747-84f5e18c34c8"
  data-theme="light"
  data-show-badge="true"
></script>
```

### View Tracking

Views are tracked when:

* The embed card becomes visible in the viewport
* Uses Intersection Observer API for accuracy
* Beacon API for reliable tracking (with fetch fallback)

### Click Tracking

Clicks are tracked through:

* Redirect URLs that log the click before sending to Amazon
* Preserves affiliate tags and tracking parameters
* Works with all Amazon product links

***

## Dashboard Analytics

View all your analytics data in your Jasin dashboard:

### Analytics Overview

* **Total Views**: Across all your embeds
* **Total Clicks**: Users who clicked through to Amazon
* **Click-Through Rate**: Percentage of views that resulted in clicks
* **Top Performers**: Your best-performing product embeds

### Individual Embed Stats

Each embed shows:

* Views and clicks over time
* Performance compared to your other embeds
* Referrer information (where views came from)
* Geographic data (Pro and Pro Plus plans)

***

## Data Retention

### Retention Policies

* **Free Tier**: 30 days of detailed analytics
* **Pro Tier**: 90 days of detailed analytics
* **Pro Plus Tier**: 90 days of detailed analytics
* **Aggregated Data**: Permanent retention of monthly summaries

### Automated Cleanup

* Daily cleanup jobs remove old detailed records
* Materialized views maintain performance
* Export capabilities before data expires

***

## Privacy & Compliance

### Data Collection

* **No Personal Data**: We don't collect personally identifiable information
* **IP Anonymization**: IP addresses are hashed for privacy
* **GDPR Compliant**: Respects user privacy preferences

***
