Skip to main content

Hi! 

 

I’ve been trying to add Amplitude to our Unity game, but in order to correctly user Amplitude’s data, we need to be able to group user’s into groups. The Unity documentation says that it is a supported feature, but the SDK does not include any functions around this. I’ve also created an issue on the Unity SDK github: https://github.com/amplitude/unity-plugin/issues/110

 

This is pretty important to our company because since users pay at the organization level, so we need to see how features affect organizations as a whole, not just at the user-level. 

 

Best,
Kevin

Hi @kevinbunarjo, could you let me know which Amplitude organization do you belong to? A link is fine! The groups will also only work if your organization is on a paying plan and has purchased the accounts add-on: https://help.amplitude.com/hc/en-us/articles/115001765532-Account-level-reporting-in-Amplitude#prerequisites 


Hi! Our organization is definitely on a payign plan (we use grouping in our iOS app): https://analytics.amplitude.com/joonapp/

The issue here is that the function to group users does’t actually exist on the Unity SDK. In particular this function (`Amplitude.getInstance().setGroup`) that is outlined in the documentation here: https://www.docs.developers.amplitude.com/data/sdks/unity/#set-user-groups


@ning.chang am I missing something here?


Sorry for the scattered responses - I can’t seem to edit my replies haha. But if you look at the SDK repository, the `setGroup` function just doesn’t exist:

 

https://github.com/amplitude/unity-plugin/blob/main/Assets/Amplitude/Amplitude.cs


Thanks for following up @kevinbunarjo I’ll ping the team who can take a closer look. 


Closing the loop here! 


The engineering team let me know that they have added the setGroup method to the Unity SDK in v2.6.0. You can find the new version in the Releases page: https://github.com/amplitude/unity-plugin/releases.
 


Reply