How can update/create visitor profile parameters using webSDK sendEvent on page | Community
Skip to main content
March 25, 2024
Solved

How can update/create visitor profile parameters using webSDK sendEvent on page

  • March 25, 2024
  • 2 replies
  • 2248 views

Hello, 

 

I have a quick question. I wonder if it is possible to update existing visitor profiles or create new ones using the sendEvent command from alloy (no tag manager available). 

I know that on page load in the first sendEvent command you can pass profile Params to target inside the data.__adobe.. property but I don’t know if I can pass new params during the runtime of the page for example when a user do something within an activity for example clicking the add to cart button. 

also would be great to know if that works not only for existing profile params passed in the first sendEvent on page load but also to new ones I come up along the way.

 

thank you all a lot!

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 deecsilva

Are you aware of any issues where the profile attributes aren't making it to Target?  I've been testing client-side alloy calls to update/create a Target attribute but they aren't appearing in Target.  It's been over a day now

2 replies

Level 4
March 26, 2024

Hi @pedroji1 

My understanding is that any profile parameters passed under the xdm schema data.__adobe.target (as you mentioned above) behave the same way as if they were sent via at.js.

  • If the profile parameter key exists it's value will be updated to the new value
  • If the profile parameter key doesn't exist it would be created.

You just need to call an alloy sendEvent each time you want to pass any profile parameter to Target.

One call-out is if you also have the same "data stream" for Adobe Analytics you might want to beware of sending duplicate hits for the same page.

 

 

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

 

 

Reference Docos:
https://experienceleague.adobe.com/en/docs/platform-learn/migrate-target-to-websdk/send-parameters 

deecsilvaAccepted solution
Level 2
March 27, 2024

Are you aware of any issues where the profile attributes aren't making it to Target?  I've been testing client-side alloy calls to update/create a Target attribute but they aren't appearing in Target.  It's been over a day now

Level 4
April 1, 2024

Hi @deecsilva - 2 things I would validate next are:

1. Have you been able to get experiences returned from an mbox via alloy?

2. Use the Experience Platform Debugger Extension to make sure everything is working as expected on the back end.
https://experienceleague.adobe.com/en/docs/platform-learn/migrate-target-to-websdk/debugging

Michael_Soprano
Level 10
August 12, 2024

Have you resolved this issue? I am working on this for two weeks (not constantly) and have no idea why its not working.............