API Reference
Complete API reference for the Tode SDK - the analytics solution for Figma plugins and widgets.
Core Module (@tode-sdk/core)
The core module provides the main tode instance used in your plugin controller.
Initialization
- tode.init() - Initialize Tode with your API key
Tracking Methods
- tode.trackAction() - Track simple user actions
- tode.trackActionWithMetric() - Track actions with numeric values
Properties
- tode.isReady - Check if Tode is ready to track
Quick Example
code.ts
import { tode } from '@tode-sdk/core';
// Initialize
await tode.init({ apiKey: 'your-api-key' });
// Track actions
tode.trackAction('plugin_opened');
tode.trackActionWithMetric('items_exported', 42);
// Check status
if (tode.isReady) {
tode.trackAction('ready_to_track');
}Need Help?
- Read the Best Practices guide for implementation tips
- Check the framework-specific guides for detailed examples
- Review the Introduction for setup instructions