Copy link to clipboard
Copied
Hi
I made an HTML5 banner ad in Animate which has a simple button with similar code to the following:
this.btn.addEventListener("click", fl_ClickToGoToWebPage); function fl_ClickToGoToWebPage() { window.open("http://www.adobe.com", "_blank"); }
This functions correctly but now the ad needs to be prepared for an Ad Server (ADTECH) and I have been sent the following example which demonstrates how the adserver tracks clicks:
var twitterButton = document.getElementById('twitter-button');
twitterButton.onclick = function() {
ADTECH.click('Twitter', 'http://twitter.com/twittername');
}
Does anyone know how I can incorporate this into my current button, can I simply modify my existing code or will it need to be written differently?
Thanks for your help
Have something to add?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now