Package Manager, then select
Advanced Project Settingsfrom the gear menu. Now add the JustTrack Package Registry to your game:
Packages: My Registriesin the drop-down menu, select the
JustTrack SDKand install it into your game. Use the latest available version if possible.
Packages/manifest.json. Afterwards, your
manifest.jsonshould look like this:
Packages/JustTrack SDK/Prefabsand add the
JustTrackSDKprefab to your initial scene.
prod-c6654a0ae88b2f21111b9d69b4539fb1186de983f0ad826f0febaf28e3e3b7edas the API token.
JustTrackSDKDependencies.xmlfrom this package and begin downloading them.
OnAttributionResponsecallback to be notified about the attribution. Keep in mind that the callback can also be called if a user is attributed to a retargeting campaign.
attributionvariable will be an instance of the
AttributionResponseclass. It looks like this:
event_nameto the backend:
EventDetailsclass allows you to amend an event with a category, an element, and an action. On the dashboard you can then filter for all events with, e.g., a specific category, looking at multiple connected events at the same time. The
CustomUserEventclass allows you to amend your events with up to three custom dimensions as well as a value and a unit. The custom dimensions allow you to split events on the dashboard again by some criterium. For example, in a game a player might acquire an item. You could be interested in the rarity of each item acquired, e.g., to see how many users acquire a rare item on their first day (as the dashboard allows you to look at different cohorts of users):
elementId. Standard events accept additional dimensions next to the three custom dimensions you can use on custom user events. For the
elementId, which you can (but don't have to) use to record about which level you are actually talking. Thus, a call could look like this (hardcoding the arguments for simplicity):
LoginProviderauthorizationFinishEventis a standard event which can provide a duration, too). Instead, the JustTrack SDK is already measuring the duration for us and will provide it automatically.
ProgressionQuestStartEvent. The tracking ends once you trigger a
ProgressionLevelFailEventfor levels and a
ProgressionQuestFailEventfor quests. These events are then automatically modified to also carry the total time the user spend with the game open on his device.
JustTrack.JustTrackSDKBehaviour.IronSourceInitializedto check if IronSource already has been initialized or use
JustTrack.to schedule a callback once it has been initialized (the callback is also invoked should IronSource already have been initialized, you do not need check for that yourself prior to this. The callback is always asynchrounously called on the main thread).
SKAdNetwork.registerAppForAdNetworkAttributionupon startup. This will cause the device to send a postback describing the attribution of the app after 24 to 48 hours. The SDK also registers the JustTrack backend as the receiver for the copy of the postback for the advertised app (iOS 15+).