The CleverTap Unity Plugin for Mobile Customer Engagement and Analytics solutions.
For more information check out our website and documentation.
To get started, sign up here.
You can install the CleverTap Unity SDK using the .unitypackage
Unity package or as a local package through Unity Package Manager (UPM).
- Download the latest version of the CleverTap Unity package. Import the
.unitypackage
into your Unity Project. Go to Assets > Import Package > Custom Package. - Add the PlayServiceResolver and the ExternalDependencyManager folders. These folders will install the EDM4U plugin, which automatically adds all the Android and iOS dependencies when building your project.
- Ensure that the scripts inside the
Editor
folder are added (AndroidPostImport
,CleverTapPostBuildProcessor.
and the other scripts). TheAndroidPostImport
script sets upclevertap-android-wrapper
library for Android.CleverTapPostBuildProcessor
helps iOS setup.
Clone the latest release version of CleverTap Unity SDK. The SDK can be imported as a local package through the Unity Package Manager.
CleverTap API can be accessed anywhere in your project by simply calling the static CleverTap
class. No need to create GameObject
or attach any script. The SDK handles the following:
- Instantiation of platform-specific binding (iOS, Android, Native)
- Creation of
GameObject
- Script attachment.
You can view your CleverTap Account ID
and CleverTap Account Token
from the CleverTap Dashboard -> Settings.
// Initialize CleverTap
CleverTap.LaunchWithCredentialsForRegion({YOUR_CLEVERTAP_ACCOUNT_ID}, {YOUR_CLEVERTAP_ACCOUNT_TOKEN}, {CLEVERTAP_ACCOUNT_REGION});
// Enable personalization
CleverTap.EnablePersonalization();
Add an event listener for a callback directly through the CleverTap
static events.
CleverTap.OnCleverTapDeepLinkCallback += YOUR_CALLBACK_METHOD;
CleverTap.OnCleverTapProfileInitializedCallback += YOUR_CALLBACK_METHOD;
CleverTap.OnCleverTapProfileUpdatesCallback += YOUR_CALLBACK_METHOD;
iOS specific setup is described in the iOS Instructions
Android specific setup is described in the Android Instructions
WebGL specific setup is described in the WebGL Instructions
Check out the CleverTap Unity plugin SDK Change Log here.
If you have questions or concerns, you can reach out to the CleverTap support team from the CleverTap Dashboard.
TroubleShooting Guide: Please refer here if you are facing common integration issue.