Search Unity

Raw Data Export API: Custom Event Name

Discussion in 'Unity Analytics' started by wwcolter, Feb 23, 2018.

  1. wwcolter

    wwcolter

    Joined:
    Nov 4, 2016
    Posts:
    28
    The raw data export documentation is clear when it comes to generating a request for a specific dataset. It reads:
    One of the following event types: appStart, appRunning, deviceInfo, custom, transaction, or userInfo.

    What we can't figure out is how request a specific custom event type. We don't want ALL custom events, just game_over.

    In the raw data export dashboard, you choose your event type (appStart, custom, etc), and if you choose Custom there is a Name dropdown which lets you only export things like game_over, ad_offer, etc.

    How does one specify the custom event name using the raw data export API?
     
  2. ap-unity

    ap-unity

    Unity Technologies

    Joined:
    Aug 3, 2016
    Posts:
    1,519
    @wwcolter

    Yes, that is possible via the API, we just didn't update the docs when we added that feature.

    Here is the format for that request:

    Code (csharp):
    1. {
    2. "startDate": "2017-07-16",
    3. "endDate": "2017-07-17",
    4. "format": "json",
    5. "dataset": "custom",
    6. "filterCustomEventName": "gameStart"
    7. }
     
  3. wwcolter

    wwcolter

    Joined:
    Nov 4, 2016
    Posts:
    28
    Thank you @ap-unity! I tried guessing lots of different param names but never tried "filterCustomEventName".