Xpersona
E

Engagement Analytics Skill

CLAWHUB · Unverified

Use this skill whenever the user needs help with behavioral analytics, engagement tracking, or data collection across any digital touchpoint. Trigger for: we... Skill: Engagement Analytics Skill Owner: abhishekj9621 Summary: Use this skill whenever the user needs help with behavioral analytics, engagement tracking, or data collection across any digital touchpoint. Trigger for: we... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-02T11:40:14.897Z | auto Initial release of the Engagement Analytics Tracker skill. - Provides modular analytics tracking guidance for web, ema

62
Rank
84
Safety
995
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 995 downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1751yz1cbsqn3pc7sqpc0ytq983k7kg:engagement-analytics-skill
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-abhishekj9621-engagement-analytics-skill/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

43,336 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: engagement-analytics-tracker
description: >
  Use this skill whenever the user needs help with behavioral analytics, engagement tracking,
  or data collection across any digital touchpoint. Trigger for: website behavioral analytics
  (scroll depth, form abandonment, session tracking, GTM setup, GA4 custom events), email
  engagement tracking (open/click/attribution via Klaviyo, Mailchimp, or custom platforms),
  social media engagement monitoring (owned and competitor), mobile app analytics (Firebase,
  Amplitude, Mixpanel, AppsFlyer), user-level engagement scoring, cohort analysis, conversion
  tracking, event schema design, data layer setup, attribution modeling, or any request like
  "track user behavior", "set up analytics", "measure engagement", "build an event schema",
  "track form abandonment", "email attribution", "app retention analysis", "what events should
  I track?", or "how do I measure X". Always use this skill — do not guess at tracking
  implementations from memory; patterns and APIs change.
---

# Engagement Analytics Tracker Skill

A comprehensive skill for designing, implementing, and interpreting behavioral analytics
across four touchpoint layers: website, email, social, and mobile app.

---

## Four Tracking Modules

| Module | Reference File | Use When |
|--------|----------------|----------|
| Website Behavioral Analytics | `references/website-analytics.md` | GTM, GA4, scroll/form/session tracking |
| Email Engagement Tracker | `references/email-analytics.md` | Klaviyo, Mailchimp, open/click/attribution |
| Social Media Engagement | `references/social-analytics.md` | Owned + competitor social tracking |
| Mobile App Analytics | `references/mobile-analytics.md` | Firebase, Amplitude, Mixpanel, AppsFlyer |

**Load strategy:** Load only the relevant module(s) based on the user's question. For full
analytics stack questions ("build me a complete analytics system"), load all four.

---

## Universal Data Principles

These apply across ALL four modules:

### Event Naming Convention (Use Everywhere)
```
object_action
# Examples:
page_viewed          button_clicked       form_abandoned
video_played         product_viewed       email_opened
session_started      feature_used         purchase_completed
```
- Always lowercase with underscores
- Object first, then action
- Be specific: `checkout_form_abandoned` not `form_event`
- Keep consistent across all platforms — the same action has the same name everywhere

### Data Layer Structure (Web)
```javascript
window.dataLayer = window.dataLayer || [];
dataLayer.push({
  event: 'event_name',           // string — always required
  user_id: 'u_abc123',           // hashed or anonymized
  session_id: 'ses_xyz',
  timestamp: new Date().toISOString(),
  page_path: window.location.pathname,
  // event-specific properties below:
  element_id: 'hero_cta',
  element_text: 'Start Free Trial',
});
```

### Engagement Scoring Formula
A composite score usable across web, email, and app:

`

_meta.json

{
  "ownerId": "kn7b3hw9p9jkx890jafmw2vnvx830r3y",
  "slug": "engagement-analytics-skill",
  "version": "1.0.0",
  "publishedAt": 1775130014897
}

references/email-analytics.md

# Email Engagement Tracker

## Core Email Metrics to Collect

### Per-Email (Campaign Level)
```
send_timestamp          recipient_email (hashed)     email_id
campaign_id             campaign_name                subject_line
opened (bool)           open_timestamp               open_device
open_location           clicked (bool)               click_timestamp
links_clicked []        bounced (bool)               bounce_type (hard/soft)
unsubscribed (bool)     complaint (bool)             time_to_open_seconds
time_to_click_seconds
```

### Per-User (Profile Level)
```
total_sends             total_opens                  total_clicks
open_rate               click_rate                   click_to_open_rate (CTOR)
unsubscribe_rate        complaint_rate
engagement_trend        (trending up / stable / declining)
preferred_send_time     preferred_device             preferred_content_type
last_open_date          last_click_date              days_since_last_engagement
engagement_score        engagement_tier              (hot/warm/cold/inactive)
```

### Benchmark Targets
| Metric | Good | Average | Needs Work |
|---|---|---|---|
| Open Rate | >35% | 20–35% | <20% |
| Click Rate | >3% | 1–3% | <1% |
| CTOR | >8% | 4–8% | <4% |
| Unsubscribe Rate | <0.1% | 0.1–0.3% | >0.3% |
| Bounce Rate (hard) | <0.5% | 0.5–1% | >1% |
| Complaint Rate | <0.08% | 0.08–0.1% | >0.1% |

---

## Platform-Specific Implementation

### Klaviyo

**Key tracking capabilities:**
- Opens, clicks, bounces, unsubscribes — tracked automatically
- Revenue attribution: 5-day window (campaigns), configurable for flows
- Anonymous visitor backfill: captures on-site behavior before email identification
- UTM parameters supported for GA4 cross-attribution

**JavaScript Identification (for website tracking)**
```javascript
// Run after email capture (signup form, etc.)
klaviyo.identify({
  email: '[email protected]',       // required for email attribution
  first_name: 'Priya',
  last_name: 'Sharma',
  $source: 'homepage_popup',
});

// Track custom events
klaviyo.track('Viewed Pricing Page', {
  plan_viewed: 'pro',
  time_on_page: 45,
});
```

**Webhooks API (account-level events)**
```python
import requests

# Create a webhook subscription for email events
payload = {
    "data": {
        "type": "webhook",
        "attributes": {
            "name": "Email Engagement Webhook",
            "endpoint_url": "https://your-server.com/klaviyo-events",
            "secret_key": "YOUR_SECRET",
        },
        "relationships": {
            "webhook-topics": {
                "data": [
                    {"type": "webhook-topic", "id": "event:klaviyo.email.opened"},
                    {"type": "webhook-topic", "id": "event:klaviyo.email.clicked"},
                    {"type": "webhook-topic", "id": "event:klaviyo.email.bounced"},
                    {"type": "webhook-topic", "id": "event:klaviyo.email.unsubscribed"},
                ]
            }
        }
    }
}

resp = requests.post(
    "http

references/mobile-analytics.md

# Mobile App Analytics

## Tool Selection Guide (2025)

| Stage | Best Choice | Why |
|---|---|---|
| Early-stage / MVP | **Firebase** | Free, easy Google Ads + BigQuery integration, auto-events |
| Growth / Product-led | **Amplitude** | Deep behavioral cohorts, retention analysis, funnel exploration |
| Real-time / B2B SaaS | **Mixpanel** | Fast queries, flexible dashboards, account-level analytics |
| Marketing attribution | **AppsFlyer** or **Adjust** | Install attribution, paid channel ROI, fraud prevention |
| Subscription revenue | **RevenueCat** | IAP tracking, subscription churn, LTV modeling |
| Experimentation | **Statsig** | A/B testing + analytics unified; 50–80% cheaper than alternatives |

**Common stacks:**
- Small app: Firebase Analytics + RevenueCat
- Growth startup: Amplitude + AppsFlyer + RevenueCat
- Enterprise: Mixpanel + Adjust + custom data warehouse
- Note: Microsoft Visual Studio App Center was retired March 31, 2025 — migrate if still using it

---

## Event Schema Design

### Golden Rules for Mobile Events
1. Every event is independent (no shared context like web's dataLayer)
2. Each `logEvent()` call must carry all its own parameters
3. Name events as `object_action` — consistent with web
4. Firebase: max 500 unique event names per app, 25 parameters per event
5. Amplitude/Mixpanel: no hard limits but design taxonomy carefully

### Standard Event Taxonomy

**Installation & Onboarding**
```
app_installed         install_source, device, os_version, app_version
app_first_launched    install_date, attribution_channel
onboarding_started    
onboarding_step_completed   step_number, step_name
onboarding_completed  time_to_complete_seconds
permission_granted    permission_type (notifications/camera/location)
permission_denied     permission_type
```

**Session & Navigation**
```
app_opened            session_id, source (push/organic/deeplink), app_version
screen_viewed         screen_name, previous_screen, time_on_previous_screen
app_backgrounded      session_duration, screens_visited_count
app_crashed           error_type, screen_name, stack_trace_id
```

**Feature Usage**
```
feature_used          feature_name, feature_category, usage_count
feature_completed     feature_name, completion_time_seconds
feature_abandoned     feature_name, abandonment_point, time_spent
search_performed      query, results_count, result_clicked (bool)
content_consumed      content_id, content_type, percent_consumed
```

**Conversion Events**
```
purchase_initiated    product_id, price, currency
purchase_completed    product_id, price, currency, transaction_id, payment_method
subscription_started  plan_id, plan_name, price, billing_period
subscription_cancelled plan_id, cancellation_reason, days_active
subscription_renewed  plan_id, renewal_count
in_app_purchase       item_id, item_name, price, currency
```

**Retention Signals**
```
notification_received notification_id, notification_type
notification_tapped   notification_id, notification_type
de

references/social-analytics.md

# Social Media Engagement Tracker

## Owned Social — What to Collect

### Per Post
```
post_id              platform              post_type (image/video/reel/story/carousel)
published_at         caption_length        hashtags_used []
reach                impressions           engagement_count
likes                comments              shares / reposts
saves                click_throughs        profile_visits_from_post
video_views          watch_time_avg        completion_rate
story_replies        story_exits           poll_responses
```

### Per Profile / Account (Weekly Snapshot)
```
follower_count       follower_growth        follower_growth_rate (%)
following_count      avg_engagement_rate    reach_rate (reach / followers)
total_posts          posting_frequency      best_performing_content_type
profile_visits       bio_link_clicks        branded_hashtag_mentions
audience_quality_score   (engaged vs ghost/bot estimate)
```

### Engagement Rate Formula
```
Engagement Rate = (Likes + Comments + Shares + Saves) / Reach × 100

Industry benchmarks (2025):
  Instagram:  1–3% (good), >3% (excellent)
  Facebook:   0.5–1% (good), >1% (excellent)  
  LinkedIn:   1–5% (varies by content type)
  TikTok:     3–8% (good), >8% (excellent)
  Twitter/X:  0.5–1% (good)
```

---

## Platform APIs for Owned Social

### Meta Graph API (Instagram + Facebook)

```python
import requests

TOKEN = "YOUR_LONG_LIVED_ACCESS_TOKEN"
ACCOUNT_ID = "YOUR_IG_BUSINESS_ACCOUNT_ID"

# Get recent posts with engagement metrics
resp = requests.get(
    f"https://graph.facebook.com/v21.0/{ACCOUNT_ID}/media",
    params={
        "fields": "id,caption,media_type,timestamp,like_count,comments_count,reach,impressions,saved,video_views",
        "access_token": TOKEN,
    }
)
posts = resp.json().get("data", [])

# Get post-level insights (for a specific post)
post_id = posts[0]["id"]
resp = requests.get(
    f"https://graph.facebook.com/v21.0/{post_id}/insights",
    params={
        "metric": "reach,impressions,saved,video_views,profile_visits",
        "access_token": TOKEN,
    }
)

# Get profile-level follower metrics
resp = requests.get(
    f"https://graph.facebook.com/v21.0/{ACCOUNT_ID}/insights",
    params={
        "metric": "follower_count,profile_views,reach,impressions",
        "period": "week",
        "access_token": TOKEN,
    }
)
```

**Token requirements:**
- Need Instagram Business or Creator account linked to a Facebook Page
- Tokens expire — use long-lived tokens (60-day) + refresh before expiry
- Rate limit: 200 requests/hour per token

### LinkedIn API (Company Pages)

```python
# LinkedIn Marketing API — requires Company Admin access
resp = requests.get(
    "https://api.linkedin.com/v2/organizationalEntityShareStatistics",
    headers={"Authorization": f"Bearer {OAUTH_TOKEN}"},
    params={
        "q": "organizationalEntity",
        "organizationalEntity": "urn:li:organization:YOUR_ORG_ID",
        "timeIntervals.timeGranularityType": "WEEK",
    }
)
```

---

#

Sponsored

Ads related to Engagement Analytics Skill and adjacent AI workflows.