Activity Map Destination
An enhancement to Adobe Analytics' Activity Map plugin, which allows you to see where users are navigating to on your site.
Getting Started
Installation
/**
* Start Activity Map Destination Addition 2023.03.13
* This plugin allows for you to track the destination (URL) of the link clicked within ActivityMap. Data is sent to the context data a.activitymap.destination, and can then
* be picked up via a processing rule.
*
* Provided by Acronym, a Performance Marketing Agency
* https://www.acronym.com/
*/
(()=>{const t="AppMeasurement_Module_ActivityMap",i=(...t)=>{console.log("Activity Map Destination",t)};if("function"!=typeof window[t])return void i(t+" has not loaded.");const n=window.s_c_il.filter((i=>i instanceof window[t]));n||i("Activity Map Module instance not found."),n.forEach((t=>{let n=t._g,a=t.s,o=a.linkDestinationOptions||{};t._g=function(){n.apply(t,arguments);try{if(a.contextData["a.activitymap.link"]){let t="";if(a.linkObject&&"string"==typeof a.linkObject.href&&a.linkObject.href){let i=new URL(a.linkObject.href);if(t=(/^http/i.test(i.protocol)?"":i.protocol)+i.hostname+i.pathname,!1===o.trailingSlash&&(t=t.replace(/\/$/,"")),o.showParams){let n=[];o.showParams.forEach((function(t){n.push(t+"="+i.searchParams.get(t))})),n.length&&(t+="?"+n.join("&"))}o.showHash&&(t+=i.hash),/^javascript:/i.test(t)&&(t="")}t&&""!==t||(t="no destination"),a.contextData["a.activitymap.destination"]=t}}catch(t){i(t)}}}))})();
/* End Activity Map Destination Addition */Plugin Configuration
Keep Trailing Slashes
URL Parameter Allow List
Keep URL Hash
Example Configuration
Testing & QA

Enabling Processing Rules
Variable
Description

Need Help With Your Adobe Products?
Last updated
Was this helpful?