Activity map tracking with webSDK | Community
Skip to main content
Level 2
November 26, 2024
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
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.

 

2 replies

FarazHusain
FarazHusainAccepted solution
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.

 

Translate
Amruthesh_AG
New Participant
November 26, 2024

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

Translate