Web SDK - user logged in & custom event | Community
Skip to main content
Michael_Soprano
New Participant
September 11, 2025
Question

Web SDK - user logged in & custom event

  • September 11, 2025
  • 2 replies
  • 236 views

Is there any way to catch up custom event in Target audiences like: user.login? 

Is there any different way to send to Target infor that the user logged in using Web SDK?

2 replies

kandersen-1
New Participant
September 16, 2025

@michael_soprano pass it in via mbox parameter - 2 options:

1) Save it to the user profile, then you only have to set it on the first request after login, but you need to ensure to also set it to false, when they log out as the true value will persist to future visits.

alloy("sendEvent", { data: { __adobe: { target: { "profile.isLoggedIn": "true" } } } });

2) If you don't want it to be on the profile, you simply set it without 'profile.', but you'll then have to set it on every request while they are logged in.

If your login happens on a certain URL/sub-domain, you could create a profile script that checks the URL and then set the value to either true or false.

Once that's done you have it available as @bjoern__koth described.

 

 

I share weekly Adobe tips on LinkedIn—connect with me!Every Wednesday: "Something a client recently asked..."LinkedIn Profile
bjoern__koth
New Participant
September 15, 2025

Hi @michael_soprano 

you can access anything you're sending towards Target via the Web SDK through Custom > All mboxes 

 

 

Cheers from Switzerland!