Tracking an event in Amplitude

PHOTO EMBED

Wed Feb 07 2024 18:00:16 GMT+0000 (Coordinated Universal Time)

Saved by @Gavslee

import { track } from '@amplitude/analytics-react-native';

// Track a basic event
track('Button Clicked');

// Track events with optional properties
const eventProperties = {
  buttonColor: 'primary',
};
track('Button Clicked', eventProperties);
content_copyCOPY