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.
// ADNAMI CLICK TRACKING MACRO - DO NOT MODIFY //
const clickTagPrefix = "${CLICK_URL}",
// Landing Page - modify as required
clickURL = "https://www.example.com",
// ID of your clickable HTML element - modify as required
clickElement = document.getElementById("banner");
// Click function
clickElement.addEventListener("click", function(e){
const exitUrl = clickTagPrefix + clickURL;
window.open(exitUrl, '_blank');
})