You're welcome, Nicola. What you said sounds correct. Unfortunately, I
primarily interface with Unomi on the backend for our application so I
don't think I have enough knowledge of the frontend event collection using
the localhost:8181/context.json endpoint. I am sure some other users here
can provide their commentary on the frontend event collection features
w.r.t. sessions, profiles, and events.

Very respectfully,

Mike

On Fri, Aug 23, 2019 at 5:51 AM Nicola Messina <nikm...@hotmail.it> wrote:

> Hi Mike,
> thanks for the reply.
>
> I'm trying to understand the real use, the python example does not seem
> correct for real use, ad example the login case.
>
> I'have a backend, frontend and now i'm trying to set unomi.
>
> I've understand this:
> When user log in -> the backend send the login event to Unomi -> retrive
> the context-profile-id.
> (as described in the documentation)
>
> Set the cookie context-profile-id in the response in from backend to
> frontend.
>
> Now, from this time, all events sent to unomi are created from the
> frontend javascript.
>
> I'm correct?
>
> ------------------------------
> *Da:* Michael Ghen <m...@mikeghen.com>
> *Inviato:* giovedì 22 agosto 2019 14:24
> *A:* users@unomi.apache.org <users@unomi.apache.org>
> *Oggetto:* Re: Info on Session and Profiles
>
> Hi Nicola,
>
> I believe you just need to tie the profile to the session, then every
> event reported with that session will be associated to a profile. A profile
> has many events through sessions. Here is a link to creating a new profile
> and session using Python:
> https://github.com/mikeghen/unomi-tutorial/blob/master/new_profile_and_session.py.
> I hope this helps.
>
> Very respectfully,
>
> Mike
>
> On Thu, Aug 22, 2019 at 5:20 AM Nicola Messina <nikm...@hotmail.it> wrote:
>
> Hi, i'm studying Unomi but i don't understand how to link a profile when i
> send an event in the context servlet
>
> localhost:8181/context.json?sessionid=sessionId
>
> I'm studing the Twitter example, but i don't find the profileid, how can i
> associate this session to a profile?
>
> By, Nicola
>
>

Reply via email to