Code on Page

If you need a passback for another Ad to be served in  when we are not having 100% fill, you can bind to the connatix_no_content event.

Use this below tags instead of the regular connatix script. Place the below code in the <head> section. Replace the  Custom Handling with the passback code  provided by the backfill. Also replace the Provided COnnatix Token.

<script>

   function bindEvent(element, type, handler) {
      if (element.addEventListener) {
         element.addEventListener(type, handler, false);
      } else {
         document.documentElement.attachEvent('onpropertychange', function (event) {
            if (event.propertyName == type) {
               handler();
            }
         });
      }
   }

   bindEvent(window, 'connatix_no_content', function(evt) {

      CUSTOM HANDLING 

   });
</script>

<script async type='text/javascript' src='//cdn.connatix.com/min/connatix.renderer.infeed.min.js' data-connatix-token='PROVIDED CONNATIX TOKEN' >
</script>
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.