Websdk Migration from appmeasurement.js to alloy.js | Community
Skip to main content
Level 3
November 25, 2024
Solved

Websdk Migration from appmeasurement.js to alloy.js

  • November 25, 2024
  • 3 replies
  • 985 views

Hi Team,

 

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

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 bjoern__koth

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.

3 replies

John_Man
Community Advisor
Community Advisor
November 25, 2024

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,

Level 3
November 26, 2024

Any example you can share,

 

is this below code is fine?

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

John_Man
Community Advisor
Community Advisor
November 26, 2024

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 

bjoern__koth
Community Advisor and Adobe Champion
bjoern__kothCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
November 25, 2024

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!
kautuk_sahni
Community Manager
Community Manager
December 2, 2024

@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