Expand my Community achievements bar.

Help shape the future of AI assistance by participating in this quick card sorting activity. Your input will help create a more effective system that better serves your needs and those of your colleagues.
SOLVED

Websdk Migration from appmeasurement.js to alloy.js

Avatar

Level 3

Hi Team,

 

What is alternative for s tracker object in alloy.js. Suppose we have s.pagename, how to write this in websdk.

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

HI @bindukumari90 

this may be interesting to read:

 

Technically, you don't need a schema to send data to AA through the Web SDK. You can use the Launch Web SDK extension's variable data element to do the mapping for you.

Basically, you create a data.__adobe.analytics payload object which can be used to set props/eVars/events directly on it, which makes it easy to migrate an existing setup.

Cheers from Switzerland!


View solution in original post

5 Replies

Avatar

Level 6

Hi @bindukumari90 

 

I believe you have to start using the XDM Object or Data Object in Web SDK instead of the s tracker object.

 

Thanks,

Avatar

Level 3

Any example you can share,

 

is this below code is fine?

content.xdm.web.webPageDetails.name = "Checkout";

Avatar

Level 6

For XDM approach, after the schema is created, we always create a XDM Object as data element and populate its field values with the Launch UI.

 

If AA is the only application, you may skip the XDM approach and just use the Data Object, as shared by @bjoern__koth 

Avatar

Correct answer by
Community Advisor

HI @bindukumari90 

this may be interesting to read:

 

Technically, you don't need a schema to send data to AA through the Web SDK. You can use the Launch Web SDK extension's variable data element to do the mapping for you.

Basically, you create a data.__adobe.analytics payload object which can be used to set props/eVars/events directly on it, which makes it easy to migrate an existing setup.

Cheers from Switzerland!


Avatar

Administrator

@bindukumari90 Were these suggestions helpful? If you need further clarification, feel free to ask. Otherwise, marking the answer as correct can guide others. If you've resolved the issue on your own, please share your solution to benefit the community. Thank you!



Kautuk Sahni