Activity map tracking with webSDK | Community
Skip to main content
Level 2
November 26, 2024
Solved

Activity map tracking with webSDK

  • November 26, 2024
  • 1 reply
  • 641 views

I want to migrate my Activty Map (AM) implementation to the webSDK. Currently I am setting the AM variables inside the s object like: 

 

s.ActivityMap.link = "value"
s.ActivityMap.regionIDAttribute = "other value"

 

How this behaviour is acchieved in the webSDK? I do not find any meaningful documentation.

 

Thank you very much.

Best answer by FarazHusain

I think web.webInteraction.name would be equivalent to s.ActivityMap.link and web.webInteraction.region would be equivalent to s.ActivityMap.regionID.

If I enabled Activity Map in WebSDK, I see the following in my payload for activity map:

Likewise, you can see the same web.webInteraction, so I think we can customize the above two to achieve the same behaviour. 

But yes there isn't any document available for this. Not sure if someone has already tested this.

 

1 reply

FarazHusain
Adobe Employee
FarazHusainAdobe EmployeeAccepted solution
Adobe Employee
November 26, 2024

I think web.webInteraction.name would be equivalent to s.ActivityMap.link and web.webInteraction.region would be equivalent to s.ActivityMap.regionID.

If I enabled Activity Map in WebSDK, I see the following in my payload for activity map:

Likewise, you can see the same web.webInteraction, so I think we can customize the above two to achieve the same behaviour. 

But yes there isn't any document available for this. Not sure if someone has already tested this.

 

Amruthesh_AG
Community Advisor
Community Advisor
November 26, 2024

Thank you @farazhusain for posting this solution. it is very helpful.