Deploying revenue analytics

In order for Carbon to capture all revenue events and avoid racing against any ad tags, the below code snippet needs to be implemented as high as possible in the of the site above any googletag or prebid(pbjs) code . This snippet loads almost instantaneously and has no lag time.

<script>
!function(a,e){a.cca=a.cca||{},a.cca.tapPrebidQue=[],a.cca.tapGAMQue=[];var
n=a.cca;a.pbjs=a.pbjs||{que:[]};var
t=a.pbjs;t.que.push(function(){t.onEvent("bidWon",function(a){n.tapReady||n.tapPrebidQue.push(JSON.stringify(a))})}),a.googletag=a.googletag||{cmd:[]};var
c=a.googletag;c.cmd.push(function()
{c.pubads().addEventListener("slotRenderEnded",function(a
{n.tapReady||n.tapGAMQue.push(a)})})}(window);</script>

If you need further support please get in touch with your Carbon Account Manager or email us on support@carbondmp.com

Copyright © 2021 Carbon (AI) Ltd. All rights reserved.