Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity-Posthog

Code for logging events in Unity games/apps to PostHog.

Originally forked from Gamefound PostHog.Net

Usage example

import UnityPosthog.AnalyticsTracker;

// Log a basic event/user action
AnalyticsTracker.Track("usage_events/app_opened");

// Log an event with associated properties
AnalyticsTracker.Track("usage_event/example_event_with_properties"),
            AnalyticsTracker.makeProperties(new Dictionary<string, object> { { "propertyKey", "propertyValue" } });

When UnityPosthog is first imported and used, User will be Identified and created in PostHog. You can modify what user properties they get in AnalyticsTracker.cs.

About

Posthog Integration for Unity

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages