Solved

Unity plugin missing user grouping feature

  • 5 September 2022
  • 6 replies
  • 55 views

Badge

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

icon

Best answer by ning.chang 23 September 2022, 05:12

View original

6 replies

Userlevel 4
Badge +7

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 

Badge

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

Badge

@ning.chang am I missing something here?

Badge

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

Userlevel 5
Badge +2

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

Userlevel 4
Badge +7

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