The code must include a series of macros to be used by the architecture serving our ads.
Unit wrapper
<body
data-pos="%%PATTERN:pos%%"
data-prop="%%PATTERN:prop%%"
data-uap="%%PATTERN:uap%%"
>
<div
data-vp="%%PATTERN:vp%%"
data-prop="%%PATTERN:prop%%"
data-pos="%%PATTERN:pos%%"
data-uap="%%PATTERN:uap%%"
>
<!-- Unit code -->
</div>
</body>
Outbound Links
<a
href="%%CLICK_URL_UNESC%%%%DEST_URL_UNESC%%"
target="_blank"
class="button"
onclick='(function(){ET.track({
type:"clickURL",
location:"item name .. (ie: logo, background ..."});})()'
>Link Label</a
>
/* sample */
<atarget="_blank"href="%%CLICK_URL_UNESC%%%%DEST_URL%%"onclick='(function(){ET.track({type:"clickURL",location:"logo"});})()'><img> logo image .... </>
</a>
Tracking
Then unit must include the Event Tracker (ET) script, after the unit code to implement effective event monitoring of our ad units. (please keep the script below inside the <body> script goes here ... </body> tags)
<scriptid="ad-ET-v-5.0">
const loadScript=(t,e=!0,a="text/javascript")=>newPromise((s,r)=>{try{let d=document.createElement("script");d.type=a,d.async=e,d.src=t,d.addEventListener("load",t=>{s({status:!0})}),d.addEventListener("error",t=>{r({status:!1,message:`Failed to load the script ${t}`})}),document.body.appendChild(d)}catch(c){r(c)}});