Skip to main content
Level 2
Nov 26, 2024 9:45 AM UTC
Solved

Activity map tracking with webSDK

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.

FarazHusain
FarazHusainAccepted solution
Adobe Employee
Nov 26, 2024 12:35 PM UTC

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.

 

2 replies

FarazHusain
Adobe Employee
FarazHusainAdobe EmployeeAccepted solution
Adobe Employee
Nov 26, 2024 12:35 PM UTC

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.

 

Translate
Amruthesh_AG
Community Advisor
Community Advisor
Nov 26, 2024 1:04 PM UTC

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

Translate