This page is built to demonstrate Smart Banner feature, please open the webpage using your mobile devices.
With similar setup to Smart Script, Smart Banner can also archieve similar result in forwarding the incoming URL parameters to the outgoing OneLink URL.
Configuration can be done directly through the AppsFlyer UI after the implementation has been done.
Implementation can be done either directly through adding code on the webpage or through Google Tag Manager (GTM). The Smart Script on this webpage was implemented by adding the script directly.
if(AF_SMART_SCRIPT_RESULT) {
var buttons = document.getElementsByClassName("smartscript");
for (var i = 0; i < buttons.length; i++) {
buttons[i].setAttribute("href", AF_SMART_SCRIPT_RESULT.clickURL);
}
}
var buttons = document.getElementsByClassName("creditcard-btn-app");
for (var i = 0; i < buttons.length; i++) {
var adset = encodeURIComponent(buttons[i].getAttribute("button_adset"));
buttons[i].setAttribute("href", result_url.clickURL + "&af_adset=" + adset);
}