• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

how to add clicktag

New Here ,
Nov 14, 2016 Nov 14, 2016

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

Views

452

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Nov 14, 2016 Nov 14, 2016

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.

Votes

Translate

Translate
Enthusiast ,
Nov 14, 2016 Nov 14, 2016

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>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 14, 2016 Nov 14, 2016

Copy link to clipboard

Copied

Thank you for your answer- Unfortunatly i didnt undestand about step 2. Could you explain please. thank you!

Спасибо за ответ. Вы по русски говорите? с первым пунктом всё понятно.Не совсем поняла второй пункт. Не могли бы пояснить? Заранее спасибо, Вероника

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 14, 2016 Nov 14, 2016

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 14, 2016 Nov 14, 2016

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines