Amplitude desktop integration

From a5c-ai/babysitter · View interactive version

Amplitude desktop integration is an AI agent skill from the GitHub repository a5c-ai/babysitter. Integrate Amplitude analytics with privacy controls for desktop applications

How to use this skill

Skill file

amplitude-desktop-integration

Integrate Amplitude analytics into desktop applications with privacy controls and event tracking.

Capabilities

Input Schema

{
  "type": "object",
  "properties": {
    "projectPath": { "type": "string" },
    "apiKey": { "type": "string" },
    "privacyMode": { "enum": ["full", "minimal", "opt-in"] }
  },
  "required": ["projectPath"]
}

Integration

import * as amplitude from '@amplitude/analytics-browser';

amplitude.init('YOUR_API_KEY', undefined, {
  defaultTracking: {
    sessions: true,
    pageViews: false, // Desktop apps don't have pages
    formInteractions: false,
    fileDownloads: false
  },
  optOut: !userConsentedToAnalytics()
});

// Track events
amplitude.track('Feature Used', {
  featureName: 'Export',
  fileFormat: 'PDF'
});

Privacy Controls

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.