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

Web SDK - user logged in & custom event

  • September 11, 2025
  • 2 replies
  • 237 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

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
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!
kandersen-1
Community Advisor
Community Advisor
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.

 

 

Test forum signature