Skip to content

user_property vs property #13

@bonswouar

Description

@bonswouar

Seeing the documentation, it looks like there are two types of proprieties.
Apparently some should be related to an User and some to an Event.
But I don't see how to use those (with the Dashboard for example), and I'm not sure it's actually working.
Here is how I do :

  • I tried to set some, using the API, as a second parameter of eventHub.identify() : it apparently sets it in the event (I can see this property on the last event of /users/timeline of this User, and in the Dashboard for this Event only)
  • I tried to set some using eventHub.register() : It's not on the /users/timeline, I can't find this property anywhere ?!

And when I execute curl http://localhost:8080/users/keys it always returns an empty array.

Did I miss something in the documentation ?


EDIT :
Oh, when I use curl to update user information as in the documentation, it appareard in /users/keys (though I still don't know how to use them in the Funnel/Cohort dashboard).

And I can see it doesn't send those user_proprieties in the network call.
Here is my JS :

        var clientId = '1234';
        var name = "EventHub";
        var options = {
          url: 'http://localhost:8080',
          flushInterval: 1
        };
        var eventHub = window.newEventHub(name, options);
        eventHub.identify(clientId, {'ip2':'12.0.0.1'});
        eventHub.track('souscription', null);
        eventHub.register({
          'ip': '127.0.0.1'
                  });

And here is the call it generates :
http://localhost:8080/events/batch_track?callback=DevTips.jsonp._callback0&events=%5B%7B%22ip2%22%3A%2212.0.0.1%22%2C%22event_type%22%3A%22souscription%22%2C%22external_user_id%22%3A%221234%22%7D%5D

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions