/* ControlTag Loader for Webedia 221bdf58-7735-4bcb-9673-a03b459a1a40 */
(function(w, cs) {
if (/Twitter for iPhone/.test(w.navigator.userAgent || '')) {
return;
}
var debugging = /kxdebug/.test(w.location);
var log = function() {
debugging && w.console && w.console.log([].slice.call(arguments).join(' '));
};
var load = function(url, callback) {
log('Loading script from:', url);
var node = w.document.createElement('script');
node.async = true;
node.src = url;
node.onload = node.onreadystatechange = function () {
var state = node.readyState;
if (!callback.done && (!state || /loaded|complete/.test(state))) {
log('Script loaded from:', url);
callback.done = true;
callback();
}
};
var sibling = w.document.getElementsByTagName('script')[0];
sibling.parentNode.insertBefore(node, sibling);
};
var config = {"app":{"name":"krux-scala-config-webservice","version":"3.32.4","schema_version":3},"confid":"KO96Fuv_","context_terms":[],"publisher":{"name":"Webedia","active":true,"uuid":"221bdf58-7735-4bcb-9673-a03b459a1a40","version_bucket":"stable","id":1832},"params":{"link_header_bidder":false,"site_level_supertag_config":"site","recommend":false,"control_tag_pixel_throttle":100,"fingerprint":false,"optout_button_optout_text":"Browser Opt Out","user_data_timing":"load","use_central_usermatch":true,"store_realtime_segments":false,"tag_source":false,"link_hb_start_event":"ready","optout_button_optin_text":"Browser Opt In","first_party_uid":false,"link_hb_timeout":2000,"link_hb_adserver_subordinate":true,"optimize_realtime_segments":false,"link_hb_adserver":"dfp","target_fingerprint":false,"context_terms":false,"optout_button_id":"kx-optout-button","dfp_premium":true,"control_tag_namespace":"webedia"},"prioritized_segments":[],"realtime_segments":[{"id":"rmh5uttha","test":["or",["and",["or",["intersects","$page_attr_jv_game_genre:,",["combat"]]]],["and",["or",["contains","$page_attr_ac_actor:,",["5311"]]]]]},{"id":"rwbhejzdl","test":["and",["and",["or",["intersects","$page_attr_movie_id:,",["241997"]],["intersects","$page_attr_movie_id:,",["177631"]],["intersects","$page_attr_movie_id:,",["247743"]],["intersects","$page_attr_movie_id:,",["247484"]]]]]},{"id":"qeroufkth","test":["and",["and",["or",["contains","$page_attr_movie_label",["star_wars"]]]]]},{"id":"rnopmr7ok","test":["and",["and",["or",["notContains","$page_attr_750g_section_data_ingredients:;",["sel"]],["intersects","$page_attr_750g_section_data_primary_tags:,",["aperitif_sans_sel","cake_sans_sel","cuisine_sans_sel","desserts_sans_sel","soupe_sans_sel"]]]]]},{"id":"rmh4npi8y","test":["and",["and",["or",["intersects","$page_attr_ac_director:,",["15570"]]]]]},{"id":"rtfu51iiz","test":["and",["and",["or",["intersects","$page_attr_se_series_label",["24"]]]]]},{"id":"qoy2tt1z4","test":["and",["and",["or",["intersects","$page_attr_genre_label2:,",["animation","dessin animé","dessin_anime"]]]]]}],"services":{"userdata":"//cdn.krxd.net/userdata/get","contentConnector":"//connector.krxd.net/content_connector","stats":"//apiservices.krxd.net/stats","optout":"//cdn.krxd.net/userdata/optout/status","event":"//beacon.krxd.net/event.gif","set_optout":"https://consumer.krxd.net/consumer/optout","data":"//beacon.krxd.net/data.gif","link_hb_stats":"//beacon.krxd.net/link_bidder_stats.gif","userData":"//cdn.krxd.net/userdata/get","link_hb_mas":"//link.krxd.net/hb","config":"//cdn.krxd.net/controltag/{{ confid }}.js","social":"//beacon.krxd.net/social.gif","addSegment":"//cdn.krxd.net/userdata/add","pixel":"//beacon.krxd.net/pixel.gif","um":"https://usermatch.krxd.net/um/v2","controltag":"//cdn.krxd.net/ctjs/controltag.js.{hash}","click":"//apiservices.krxd.net/click_tracker/track","stats_export":"//beacon.krxd.net/controltag_stats.gif","userdataApi":"//cdn.krxd.net/userdata/v1/segments/get","cookie":"//beacon.krxd.net/cookie2json","proxy":"//cdn.krxd.net/partnerjs/xdi","is_optout":"//beacon.krxd.net/optout_check","impression":"//beacon.krxd.net/ad_impression.gif","transaction":"//beacon.krxd.net/transaction.gif","log":"//jslog.krxd.net/jslog.gif","set_optin":"https://consumer.krxd.net/consumer/optin","usermatch":"//beacon.krxd.net/usermatch.gif"},"experiments":[],"site":{"name":"canalblog.com","cap":255,"id":40234,"organization_id":1832,"uid":"KO96Fuv_"},"tags":[{"id":7359,"name":"Technographic Data provider tag","content":"","target":null,"target_action":"append","timing":"onload","method":"document","priority":null,"template_replacement":true,"internal":true,"criteria":["and",["and",["and",["<=","$frequency",3]]]]},{"id":7360,"name":"Krux Geographic Data provider tag","content":null,"target":null,"target_action":"append","timing":"onload","method":"document","priority":null,"template_replacement":true,"internal":true,"criteria":["and",["and",["and",["<=","$frequency",3]]]]},{"id":7361,"name":"Krux Track Social","content":"","target":null,"target_action":"append","timing":"onload","method":"document","priority":null,"template_replacement":true,"internal":true,"criteria":[]},{"id":7499,"name":"StickyAds Pixel","content":"","target":null,"target_action":"append","timing":"onload","method":"document","priority":null,"template_replacement":true,"internal":true,"criteria":[]},{"id":17432,"name":"Cinephile assidu","content":"","target":null,"target_action":"append","timing":"onload","method":"document","priority":null,"template_replacement":true,"internal":false,"criteria":["and",["and",["and",["intersects","$user_segments",["qbx3rc5w7"]]]]]},{"id":17451,"name":"Sticky Synchro","content":"\n ","target":null,"target_action":"append","timing":"onload","method":"document","priority":null,"template_replacement":true,"internal":false,"criteria":[]},{"id":19445,"name":"Cookie Sync Tradelab/Wootbox","content":"","target":null,"target_action":"append","timing":"onload","method":"document","priority":null,"template_replacement":true,"internal":false,"criteria":[]},{"id":28156,"name":"PL Synchro","content":"","target":null,"target_action":"append","timing":"onload","method":"document","priority":null,"template_replacement":true,"internal":false,"criteria":[]},{"id":28940,"name":"Synchro Nugg.ad","content":"","target":null,"target_action":"append","timing":"onload","method":"document","priority":null,"template_replacement":true,"internal":false,"criteria":[]},{"id":7580,"name":"Krux Standard DTC","content":"","target":null,"target_action":"append","timing":"onready","method":"document","priority":null,"template_replacement":true,"internal":true,"criteria":[]}],"usermatch_tags":[{"id":6,"name":"Google User Match","content":"","target":null,"target_action":"append","timing":"onload","method":"document","priority":1,"template_replacement":false,"internal":true,"criteria":[]},{"id":71,"name":"AppNexus Connect","content":"","target":null,"target_action":"append","timing":"onload","method":"document","priority":1,"template_replacement":false,"internal":true,"criteria":[]},{"id":7,"name":"OpenX User Match","content":"","target":null,"target_action":"append","timing":"onload","method":"document","priority":2,"template_replacement":false,"internal":true,"criteria":[]}],"link":{"adslots":{},"bidders":{}}};
for (var i = 0, tags = config.tags, len = tags.length, tag; (tag = tags[i]); ++i) {
if (String(tag.id) in cs) {
tag.content = cs[tag.id];
}
}
var esiGeo = String(function(){/*
*/}).replace(/^.*\/\*[^{]+|[^}]+\*\/.*$/g, '');
if (esiGeo) {
log('Got a request for:', esiGeo, 'adding geo to config.');
try {
config.geo = w.JSON.parse(esiGeo);
} catch (__) {
log('Unable to parse geo from:', config.geo);
config.geo = {};
}
}
var proxy = (window.Krux && window.Krux.q && window.Krux.q[0] && window.Krux.q[0][0] === 'proxy');
if (!proxy || true) {
load('//cdn.krxd.net/ctjs/controltag.js.c3e8e6311e44dfc4f051e4a261784fa1', function() {
log('Loaded stable controltag resource');
Krux('config', config);
});
}
})(window, (function() {
var obj = {};
return obj;
})());