Company Centric Script

New generation of UserReport provides single JavaScript snippet that needs to be installed on all websites owned by company.

It looks like

<script src="//sak.userreport.com/clientId/launcher.js" 
  id="userreport-launcher-script"
  async></script>

Script is asynchronious and non-blocking therefore it is recomened to add to <head> section of website. However it is perfectly fine to deploy tag through Google Tag Manager

If you company has bought to other AudienceProject products like AudienceData, AudienceReport they may be deployed to your websites through same script. If you have bough DoublClick For Publishers realtime targeting or AdForm PPAS targeting - script will be more complex, like shown in example below for DoubleClick For Publishers realtime targeting.

<script>(function(window,n){var apr=window.__APRSAK||function(k){apr._cmds.push({k:String(k),a:Array.prototype.slice.call(arguments,1),t:Date.now()});for(var i=0,l=apr._subs.length;i<l;i++)apr._subs[i]()};apr._cmds=apr._cmds||[];apr._subs=apr._subs||[];window.__APRSAK=apr;if(window.hasOwnProperty(n)===false)window[n]=apr;var TIMEOUT=1E3;var apr=window.__APRSAK;var timer=null;var done=false;var tick=function(){var i,l;var callbacks=[];var nextTickIn=null;clearTimeout(timer);for(i=apr._cmds.length-1;i>=0;i--){var cmd= apr._cmds[i];if(cmd.k==="dfp-targeting-done"){var timeoutAt=cmd.t+TIMEOUT;if(done===true||timeoutAt<=Date.now()){callbacks.unshift(cmd.a[0]);apr._cmds.splice(i,1)}else{var timeoutLeft=timeoutAt-Date.now();if(nextTickIn===null||timeoutLeft<nextTickIn)nextTickIn=timeoutLeft}}}for(i=0,l=callbacks.length;i<l;i++)try{callbacks[i]()}catch(err){console&&console.error&&console.error(err)}if(nextTickIn!==null)timer=setTimeout(tick,nextTickIn)};tick._id="dfp-fb";try{var cache=JSON.parse(window.localStorage.apr_tdc|| "0");if(cache&&cache.exp>Date.now()){var setTargeting=function(){for(var key in cache.d)if(cache.d.hasOwnProperty(key))window.googletag.pubads().setTargeting(key,cache.d[key])};window.googletag=window.googletag||{};window.googletag.cmd=window.googletag.cmd||[];if(window.googletag.cmd.unshift)window.googletag.cmd.unshift(setTargeting);else window.googletag.cmd.push(setTargeting);done=true}}finally{apr._subs.push(tick);tick()}})(window,"apr");

</script>
<script src="//sak.userreport.com/clientId/launcher.js" 
  id="userreport-launcher-script"
  async></script>

Attachments

Comments

  • Avatar
    Laurel458

    StarFlow is a data analysis environment that is script-centric, has make-like tools, tracks dependencies at the level of functions rather than files, and is constrained in scope to the level of a scripting language. tellthebell survey

  • Avatar
    Ida

    Every formula animal proprietors are most likely to run right into, https://medium.com/@getwetdogfood The American Association of Feed Control Officials.

Powered by Zendesk