optimizely-exp-events

optimizely-exp-events is an agent for Claude Code from smithdak/claude-marketplace. It costs 13 tokens per session (1,512 once invoked), scanned A, original, MIT.

An analysis agent for Optimizely event tracking, which records actions such as sign-ups or purchases and the information attached to them. It checks event data for private information and missing user context.

In plain words
What is it for?
Use it to review tracking calls, find personal or sensitive data in event properties, and check whether events include enough user context for attribution.
Why use it?
It helps reveal privacy risks and attribution gaps that can make conversion reports unsafe or unreliable.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the optimizely-exp plugin — 2 skills, 4 agents shipped together

Good fit Use it to review tracking calls, find personal or sensitive data in event properties, and check whether events include enough user context for attribution.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/smithdak/claude-marketplace/events
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/smithdak/claude-marketplace

Made for: Claude Code.

Or install optimizely-exp, the plugin that ships this one along with the rest of its 2 skills, 4 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for optimizely-exp-events

README.md
[![agentmods](https://agentmods.dev/badge/agents/smithdak/claude-marketplace/events.svg)](https://agentmods.dev/agents/smithdak/claude-marketplace/events)
Your own site
<a href="https://agentmods.dev/agents/smithdak/claude-marketplace/events"><img src="https://agentmods.dev/badge/agents/smithdak/claude-marketplace/events.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,512 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.01512
Opus 5 $0.00006 $0.00756
Sonnet 5 $0.00003 $0.00302
Haiku 4.5 $0.00001 $0.00151

Measured 7d ago against content hash 6404ca94ec84, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

optimizely-exp-events scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/optimizely-experimentation-analyzer/agents/events.md · 268 lines

How it starts

The opening of the file, as written. The whole thing — 268 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Optimizely Events Agent

Analyze event tracking implementation, conversion events, and event properties.

Analysis Areas

1. Sensitive Data in Events

EVT-001: Sensitive Data in Event Properties (Critical)

Events should not contain PII or sensitive data:

Grep: track\(.*email
Grep: track\(.*password
Grep: track\(.*ssn
Grep: track\(.*creditCard
Grep: track\(.*phone

Bad Pattern:

// PII in event properties!
optimizely.track('signup_completed', userId, {
  email: user.email,           // PII!
  phone: user.phone,           // PII!
  address: user.address,       // PII!
});

Good Pattern:

// Anonymized/aggregated data only
optimizely.track('signup_completed', userId, {
  signupMethod: 'email',       // Category, not actual email
  country: user.country,       // Aggregatable
  userType: 'free',            // Segment
});

2. User Context in Events

EVT-002: Events Without User Context (Warning)

Events need user context for proper attribution:

Grep: track\(\s*["'][^"']+["']\s*\)
Grep: track\(\s*["'][^"']+["']\s*,\s*null

Bad Pattern:

// No user context!
optimizely.track('purchase');

// Or null user ID
optimizely.track('purchase', null, { revenue: 99 });

Good Pattern:

// With user context
const userContext = optimizely.createUserContext(userId, {
  membershipTier: user.tier,
  country: user.country,
});

userContext.trackEvent('purchase', {
  revenue: 9900, // In cents
  currency: 'USD',
});

3. Event Batching

EVT-003: No Event Batching Configured (Warning)

Events should be batched for efficiency:

Grep: eventBatchSize
Grep: eventFlushInterval
Grep: eventDispatcher

Good Pattern:

const optimizely = createInstance({
  sdkKey: SDK_KEY,
  eventBatchSize: 10,           // Batch 10 events
  eventFlushInterval: 1000,     // Flush every 1s
});

4. Event Documentation

EVT-004: Custom Events Not Documented (Info)

Read the full file on GitHub · 268 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 268 lines · 13 tokens per session scan A 6404ca94ec84

Subscribe to this mod's changes

optimizely-exp-events is an agent published in the GitHub repository smithdak/claude-marketplace (3 stars, last pushed 7mo ago), licensed MIT. It adds 13 tokens to every session and 1,512 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.