Adding the clickTAG directly to code
If you received Adobe Edge Animate banner source without Adform's clickTAG implemented you may add clickTAG code directly to Edge banner actions JS file and make the banner compatible with Adform system. Workflow:
1. Define Adform DHTML library:
- If there is edgePreload.js file, define Adform library there:
2 | { load: "edge_includes/jquery-2.0.3.min.js" }, |
3 | { load: "edge_includes/edge.4.0.1.min.js" }, |
5 | { load: "index_edge.js" }, |
6 | { load: "index_edgeActions.js" }]; |
- Or if edgePreload.js is not included, define Adform DHTML library in banner's main HTML source:
2. Add clickTAG code to edgeActions.js file:
02 | ( function (symbolName) { |
03 | Symbol.bindElementAction(compId, symbolName, "${Stage}" , "click" , function (sym, e) { |
06 | dhtml.getVar( 'landingPageTarget' , '_blank' ) |
Note: this code is applied for "Stage" banner element but also could be applied on some specific area, button, symbol, etc.