Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to define event properties across all events #63

Merged
merged 3 commits into from
Aug 13, 2024

Conversation

jvitoroc
Copy link
Contributor

@jvitoroc jvitoroc commented Aug 10, 2024

This is going to be useful for me because I have several Go services, and I want to differentiate between them in the dashboard insights.

posthogClient, err = posthog.NewWithConfig(
		"phc_",
		posthog.Config{
			BatchSize:  1,
			Endpoint:  "https://us.i.posthog.com",
			...
			DefaultEventProperties: posthog.NewProperties().Set("service", "api"),
		},
	)
Screenshot 2024-08-10 at 12 53 57

Copy link
Contributor

@dmarticus dmarticus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Thank you for your contributions!

@dmarticus dmarticus merged commit c386d6b into PostHog:master Aug 13, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants