Have to create audience for logged in users, Am using webSDK, So need a solution with websdk not with at.js | Community
Skip to main content
New Participant
July 11, 2024
Solved

Have to create audience for logged in users, Am using webSDK, So need a solution with websdk not with at.js

  • July 11, 2024
  • 1 reply
  • 652 views

Hello Team,

 Need help to create the audience for logged in users. I know it should be achievable through profile attributes or mbox attributes which neeeds to be shared from page level to adobe target.

 

Am using web SDK,  So  i tried to send the information from webpage to adobe target via below code.For example in below code am sending profile.userloggedinType = true. But its not reflecting on adobe target. Am not sure wether i am doing right process or not. If its wrong please help with steps.

alloy("sendEvent", {
  "data": {
    "__adobe": {
      "target": {
        "profile.userloggedinType": "true",
        "user.categoryId": "clothing"
      }
    }
  }
});

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Gokul_Agiwal

Hi @ramnathra 

Ideally, the Target Page parameters and profile parameters must sent with data object like below.

alloy("sendEvent", { "data": { "__adobe": { "target": { "profile.userloggedinType": "true", "user.categoryId": "clothing" } } } }); return data;

Pass if any additional parameters and then in your launch system based on your rule configuration for ex: 

 

  1. Open the all pages - library loaded - send event - 50 rule

  2. Select the Adobe Experience Platform Web SDK - Send event action

  3. Add the data.content data element to the Data field

  4. Save your changes and build library. 

Check in adobe debugger and validate under data > __adobe > target and see if profile.userLoggedinType and user.CategoryID. If you are able to see then 

simply login to Adobe Target under Audience-> Visitor Profile -> you can see userLoggedinType attribute will be available.

 

Hope this helps.  

 

1 reply

Gokul_Agiwal
Gokul_AgiwalAccepted solution
New Participant
July 11, 2024

Hi @ramnathra 

Ideally, the Target Page parameters and profile parameters must sent with data object like below.

alloy("sendEvent", { "data": { "__adobe": { "target": { "profile.userloggedinType": "true", "user.categoryId": "clothing" } } } }); return data;

Pass if any additional parameters and then in your launch system based on your rule configuration for ex: 

 

  1. Open the all pages - library loaded - send event - 50 rule

  2. Select the Adobe Experience Platform Web SDK - Send event action

  3. Add the data.content data element to the Data field

  4. Save your changes and build library. 

Check in adobe debugger and validate under data > __adobe > target and see if profile.userLoggedinType and user.CategoryID. If you are able to see then 

simply login to Adobe Target under Audience-> Visitor Profile -> you can see userLoggedinType attribute will be available.

 

Hope this helps.