Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Combine event data

Discussion in 'Unity Analytics' started by Nihil688, Jan 3, 2019.

  1. Nihil688

    Nihil688

    Joined:
    Mar 12, 2013
    Posts:
    503
    Hi all, I've recently started going in depth using Analytics and have been wondering whether there's a way
    to do combination events. At first that's what I thought would happen with the dictionary but instead it just gives me data in one place but disjointed.

    What I want to do is, create an event that tells me how long it took a user to unlock a room, I used this code:

    Code (CSharp):
    1.  
    2. CreateEvent( "Unlock Room", new Dictionary<string, object>()
    3.             {
    4.                 { "Room", CurrentRoom.Name },
    5.                 { "Time", span1.TotalMinutes },
    6.             } );
    7.  
    but it's not giving me what I need. Any idea how to manage that?
     
  2. Nihil688

    Nihil688

    Joined:
    Mar 12, 2013
    Posts:
    503
    Code (CSharp):
    1.  
    2. CreateEvent( "Unlock Room " + CurrentRoom.Name, new Dictionary<string, object>()
    3.             {
    4.                 { "Time", span1.TotalMinutes },
    5.             } );
    6.  
    I hope this is not the answer as this will just create a massive list of events rather an event with sub events if that makes sense
     
  3. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446