Amplitude icon

Amplitude

Consume Amplitude API

Event → Send

AI-generated

Overview

This node sends event data to the Amplitude analytics platform. It is useful for tracking user interactions, device events, or custom events in applications or websites. For example, it can be used to log user actions like button clicks, page views, or transactions with associated properties and timestamps.

Use Case Examples

  1. Sending a user login event with user ID and event properties.
  2. Logging a device-specific event with device ID and custom user properties.

Properties

Name Meaning
Event Type The name of the event to send, representing the action or occurrence being tracked.
User ID Identifier for the user associated with the event, used to track user-specific data.
Device ID Identifier for the device associated with the event, used when user ID is not available.
Event Timestamp The timestamp when the event occurred, required for accurate event timing.
Insert ID prefix A prefix string used to create a unique insert ID for the event to avoid duplicates.
Event Properties JSON object containing additional properties related to the event for detailed tracking.
User Properties JSON object containing additional properties related to the user for enriched user profiling.

Output

JSON

  • event_type - The name of the event sent to Amplitude.
  • time - The event timestamp in milliseconds since epoch.
  • insert_id - Unique identifier for the event to prevent duplicates.
  • user_id - User identifier if provided.
  • device_id - Device identifier if provided.
  • event_properties - Additional event-specific properties as JSON.
  • user_properties - Additional user-specific properties as JSON.

Dependencies

  • Requires Amplitude API key credential for authentication.

Troubleshooting

  • Error if both User ID and Device ID are empty, as one is required to identify the event source.
  • Invalid JSON format in Event Properties or User Properties fields may cause request failure.
  • Incorrect or missing API key credential will result in authentication errors from Amplitude API.

Links

Discussion