Shopify Analytics needs a daily activity metric showing how many unique users interacted with Shopify Admin. Write a PostgreSQL query using the user_events table.
event_timestamp.user_id at most once per day, excluding events without a timestamp or user ID.activity_day and distinct_users.| Column | Type | Description |
|---|---|---|
| event_idPK | BIGINT | Unique event identifier |
| user_id | BIGINT | Shopify user who generated the event |
| event_timestamp | TIMESTAMP | Timestamp when the event occurred |
| event_name | VARCHAR(100) | Name of the recorded event |