Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.

Label first HTTP streaming event for a user

Avatar

Level 1

Hello,

We have HTTP API source streaming data into AEP.

We would like to label first event captured for user.

 

How can this be achieved in AEP?

 

For example: HTTP API source sends user logged in event to AEP, we would like to label the event when user logged in for the first time, label could just a timestamp.

 

Thank you appreciate help from the AEP community.

6 Replies

Avatar

Community Advisor

Hello @abdeshpa , 

 

If you're able to determine on the client side (such as in a mobile app, web app, or browser) that the user is logging in for the first time ( based on your CRM or another application can provide information about whether this is the first login) you can handle this process as follows:

  1. Create a new field in your XDM schema:

    • Define a field called firstLoginTimestamp with the data type set to datetime.
  2. On the client side (mobile app, web app, browser) or using your CRM:

    • If you can detect that the user is logging in for the first time pass the firstLoginTimestamp value (with the current timestamp) in the API call to Adobe Experience Platform (AEP).
    • For subsequent logins, do not include the firstLoginTimestamp field in the API request. This ensures that only the first login event has this value recorded.
  3. Create a segment:

    • In AEP, you can create a segment to select users based on the firstLoginTimestamp field. For example, you could query users whose firstLoginTimestamp is greater than, less than, or equal to a specific date, depending on your use case.

 

Hope it will help you!

 

Best regards,
Parvesh

Avatar

Level 1

Thank you @Parvesh_Parmar

 

Our source is a 3rd party tool which collect web events and forwards those to AEP in real time.

It does not store history or the first event timestamp but it has event time, wondering if there is any schema level feature in AEP that can be configured to record first event timestamp .

 

Thank you

Avatar

Community Advisor

Hello @abdeshpa , 

 

When any event is ingested into AEP, it has a timestamp associated with it.

Could you please share more details about your requirement or use case where you need to identify the first event? Is this in the context of creating a segment, or do you have a different requirement?

- If your use case involves checking whether an event has occurred, you can verify this by checking if the event count is greater than one or if the event exists.

- You can create segments based on the sequence of events.

- Additionally, you can define the first event within a specific time period. For example, you could select the first event that occurred within the past 30 days, or use another relevant time frame for your needs.

 

Kind regards,
Parvesh

Avatar

Level 1

Thank you @Parvesh_Parmar ,

 

Those are great insights, our use cases are specific to Segmentation and Personalization.

Below are the few examples of segmentation scenarios we would like to address,

 

When user first time logged in to our product.

how many times user has logged in after first successful login

when user first time made modifications to service.
when user first time deleted service. etc....

 

Above are just few scenarios and using these (and more) we would like to enable segmentation and personalization to improve their user experience by guiding users towards right direction and provide them necessary help real time.

 

You mentioned "Additionally, you can define the first event within a specific time period...." how to achieve this? is this at schema level or dataset level?

 

Thank you again for your insights.

 

 

 

 

Avatar

Administrator

@abdeshpa Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni

Avatar

Administrator

@abdeshpa Were these suggestions helpful? If you need further clarification, feel free to ask. Otherwise, marking the answer as correct can guide others. If you've resolved the issue on your own, please share your solution to benefit the community. Thank you!



Kautuk Sahni