Skip to content

Repo for RudderStack's Unity SDK. RudderStack is an open-source, warehouse-first Customer Data Pipeline and Segment-alternative. It collects and routes clickstream data and builds your customer data lake on your data warehouse.

License

Notifications You must be signed in to change notification settings

rudderlabs/rudder-sdk-unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is RudderStack?

RudderStack is a customer data pipeline tool for collecting, routing and processing data from your websites, apps, cloud tools, and data warehouse.

More information on RudderStack can be found here.

Getting Started with Unity SDK

Download the SDK plugin file: rudder-sdk-unity.unitypackage from the SDK directory and import it in your project.

Initialize RudderClient

Put this code under the Awake method of your main scene.

RudderConfig config = new RudderConfigBuilder()
.WithDataPlaneUrl(<DATAPLANE_URI>)
.Build();
RudderClient rudderClient = RudderClient.GetInstance(<WRITE_KEY>, config);

Send Events

A simple track event is as shown:

RudderMessage message = new RudderMessageBuilder()
  .WithEventName("test_event_name")
  .WithEventProperty("test_key_1", "test_value_1")
  .WithEventProperty("test_key_2", "test_value_2")
  .WithUserProperty("test_user_key_1", "test_user_value_1")
  .WithUserProperty("test_user_key_2", "test_user_value_2")
  .Build();
rudderClient.Track(message);

Other supported methods are Screen and Identify.

For more details, check out our documentation.

Contact Us

If you come across any issues while using the RudderStack Unity SDK, please feel free to contact us or start a conversation on our Slack channel. We will be happy to help you.

About

Repo for RudderStack's Unity SDK. RudderStack is an open-source, warehouse-first Customer Data Pipeline and Segment-alternative. It collects and routes clickstream data and builds your customer data lake on your data warehouse.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published