ClickTag on button - Not on whole stage

New Here ,
Jan 13, 2020 Jan 13, 2020

Copy link to clipboard




I normally use clickTags that cover the whole stage.


However, I am building a banner that has other clickable interaction, any of which when clicked on launches the ClickTag too..


Does anyone know what to edit in the HTML template to  get the clickTag to only launch from a certain CTA bttn?

My current DCM template looks like  this:


<meta charset="UTF-8">
<meta name="authoring-tool" content="$VERSION">
<!-- write your code here -->
<script src=""></script>
<script type="text/javascript">var clickTag = ""; </script>
var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;
function init() {
	canvas = document.getElementById("$CANVAS_ID");
	anim_container = document.getElementById("$ANIM_CONTAINER_ID");
	dom_overlay_container = document.getElementById("dom_overlay_container");
	//This function is always called, irrespective of the content. You can use the variable "stage" after it is created in token create_stage.
	//Registers the "tick" event listener.
	//Code to support hidpi screens and responsive scaling.
<!-- write your code here -->
<body onload="init();" style="margin:0px;">
	<div id="$ANIM_CONTAINER_ID" style="background-color:$BG; width:$WTpx; height:$HTpx">
        <a href="javascript&colon;"><canvas id="$CANVAS_ID" width="$WT" height="$HT" style="position: absolute; display: $CANVAS_DISP; background-color:$BG;"></canvas></a>
		<div id="dom_overlay_container" style="pointer-events:none; overflow:hidden; width:$WTpx; height:$HTpx; position: absolute; left: 0px; top: 0px; display: $CANVAS_DISP;">




Ad development, Code, How to







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

Have something to add?

Join the conversation