(phClient posthog.Client, organizationID int64, numEvents int)
| 298 | } |
| 299 | |
| 300 | func posthogTrack(phClient posthog.Client, organizationID int64, numEvents int) { |
| 301 | // send posthog event |
| 302 | phClient.Enqueue(posthog.Capture{ |
| 303 | DistinctId: fmt.Sprintf("%d (API Key)", organizationID), |
| 304 | Event: "track_event", |
| 305 | Properties: posthog.NewProperties(). |
| 306 | Set("num_events", numEvents), |
| 307 | }) |
| 308 | } |