1. Help Center
  2. How to host & wrap in Adnami

Click URL & Tracking (Clicktag)

See example below, where “banner” is the ID of the element we want to make clickable, and the value of clickURL is the desired landing page.

const clickTagPrefix = "${CLICK_URL}",

clickURL = "https://www.example.com",

clickElement = document.getElementById("banner");

function exitHandler(e) {

let clickTag;



clickTag = clickTagPrefix + clickURL;


console.log("Adnami API Unavailable");

clickTag = clickURL;


window.open(clickTag, '_blank');