Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Web SDK - user logged in & custom event

Avatar

Level 10

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?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

2 Replies

Avatar

Community Advisor

Hi @Michael_Soprano 

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

bjoern__koth_2-1757960460714.png

 

 

Cheers from Switzerland!


Avatar

Community Advisor

@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