Analytics & Tracking

Track how your AI platform discovers and recommends businesses.

Why Track Analytics?

  • Measure Impact: See how often you recommend businesses

  • Improve Quality: Understand which recommendations work best

  • Attribution: Get credit for driving business discovery

  • Insights: Learn about user intent and behavior


Tracking Events

Impression Tracking

Track when a business appears in your AI's response:

await aidp.analytics.trackImpression({
  businessId: 'biz_abc123',
  platform: 'your-platform',
  query: 'coffee shops',
  mentioned: true,
});

Citation Tracking

Track when you specifically recommend a business:


Batch Tracking

For high-volume platforms, use batch tracking:


Platform Analytics

View your platform's performance:


Next: Best Practices →

Last updated