Copy link to clipboard
Copied
I need to add clicktag into the banner so
Header
<script>var kClickTag=function(){var c=location.hash.match(new RegExp("clickTAG=([^$]*)")),a=c?c[1]:"";return a}();</script>
Clicked objects
window.open(kClickTag, '_blank');
Could anybody help, how to do that?
BR Veronika
Its very easy to do and you no longer need a clicktag within Flash/Animate.
Use the following and your good to go
</head>
<body onload="init();" style="background-color:#D4D4D4;margin:0px;">
<a href="javascript:window.open(window.clickTag)"><canvas id="canvas" width="728" height="90" style="background-color:#000000"></canvas></a>
</body>
</html>
If your using Google DCM you will define the URL in the campaign window. If not using DCM then you can still hardcode the end URL as desired.
Copy link to clipboard
Copied
1.
a) Create transparent button symbol on timeline and give it some instance name, e.g. - myclicktag
b) Select that button and open action panel and write script:
this.myclicktag.on("click", function () {
window.open(kClickTag, '_blank')
});
2.
Publish and open html file and then put within header:
<script>var kClickTag=function(){var c=location.hash.match(new RegExp("clickTAG=([^$]*)")),a=c?c[1]:"";return a}();</script>
Copy link to clipboard
Copied
Thank you for your answer- Unfortunatly i didnt undestand about step 2. Could you explain please. thank you!
Спасибо за ответ. Вы по русски говорите? с первым пунктом всё понятно.Не совсем поняла второй пункт. Не могли бы пояснить? Заранее спасибо, Вероника
Copy link to clipboard
Copied
Its very easy to do and you no longer need a clicktag within Flash/Animate.
Use the following and your good to go
</head>
<body onload="init();" style="background-color:#D4D4D4;margin:0px;">
<a href="javascript:window.open(window.clickTag)"><canvas id="canvas" width="728" height="90" style="background-color:#000000"></canvas></a>
</body>
</html>
If your using Google DCM you will define the URL in the campaign window. If not using DCM then you can still hardcode the end URL as desired.
Copy link to clipboard
Copied
Hi 3ereer,
In the other method, you would be replacing the html code with his amended code. But you honestly dont need it. You simply need to amend the html code with what I pasted into it. Again depending on your publisher check for specifics.