From 72afb9ea0e116ecbeb40ee45fb8d0104d62d311c Mon Sep 17 00:00:00 2001 From: Gion-Andri Cantieni Date: Thu, 4 Jan 2024 16:32:38 +0100 Subject: [PATCH] feat: add tracking code RTR --- src/app/app.component.html | 2 + src/app/app.module.ts | 2 + .../tracking-rtr/tracking-rtr.component.html | 0 .../tracking-rtr/tracking-rtr.component.scss | 0 .../tracking-rtr.component.spec.ts | 21 +++ .../tracking-rtr/tracking-rtr.component.ts | 23 +++ src/assets/tracking/tc_SRGGD_53.js | 140 ++++++++++++++++++ 7 files changed, 188 insertions(+) create mode 100644 src/app/components/tracking-rtr/tracking-rtr.component.html create mode 100644 src/app/components/tracking-rtr/tracking-rtr.component.scss create mode 100644 src/app/components/tracking-rtr/tracking-rtr.component.spec.ts create mode 100644 src/app/components/tracking-rtr/tracking-rtr.component.ts create mode 100644 src/assets/tracking/tc_SRGGD_53.js diff --git a/src/app/app.component.html b/src/app/app.component.html index 0e602bc..0ff6459 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -8,4 +8,6 @@ + + diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 337dc2c..e05625d 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -52,6 +52,7 @@ import { NoEventsComponent } from './components/events/no-events/no-events.compo import { ScrollableTitleDirective } from './shared/directives/scrollable-title.directive'; import { FilterScrollPositionDirective } from './shared/directives/filter-scroll-position.directive'; import { PwaInstallInstructionsComponent } from './components/pwa-install-instructions/pwa-install-instructions.component'; +import { TrackingRtrComponent } from './components/tracking-rtr/tracking-rtr.component'; export function jwtOptionsFactory(authService: AuthenticationService) { return { @@ -113,6 +114,7 @@ export function inIframe() { ScrollableTitleDirective, FilterScrollPositionDirective, PwaInstallInstructionsComponent, + TrackingRtrComponent, ], imports: [ BrowserModule, diff --git a/src/app/components/tracking-rtr/tracking-rtr.component.html b/src/app/components/tracking-rtr/tracking-rtr.component.html new file mode 100644 index 0000000..e69de29 diff --git a/src/app/components/tracking-rtr/tracking-rtr.component.scss b/src/app/components/tracking-rtr/tracking-rtr.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/components/tracking-rtr/tracking-rtr.component.spec.ts b/src/app/components/tracking-rtr/tracking-rtr.component.spec.ts new file mode 100644 index 0000000..fc61ca4 --- /dev/null +++ b/src/app/components/tracking-rtr/tracking-rtr.component.spec.ts @@ -0,0 +1,21 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { TrackingRtrComponent } from './tracking-rtr.component'; + +describe('TrackingRtrComponent', () => { + let component: TrackingRtrComponent; + let fixture: ComponentFixture; + + beforeEach(() => { + TestBed.configureTestingModule({ + declarations: [TrackingRtrComponent] + }); + fixture = TestBed.createComponent(TrackingRtrComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/tracking-rtr/tracking-rtr.component.ts b/src/app/components/tracking-rtr/tracking-rtr.component.ts new file mode 100644 index 0000000..120dd45 --- /dev/null +++ b/src/app/components/tracking-rtr/tracking-rtr.component.ts @@ -0,0 +1,23 @@ +import { Component, ElementRef, Inject, PLATFORM_ID, Renderer2 } from '@angular/core'; +import { isPlatformBrowser } from '@angular/common'; + +@Component({ + selector: 'app-tracking-rtr', + templateUrl: './tracking-rtr.component.html', + styleUrls: ['./tracking-rtr.component.scss'] +}) +export class TrackingRtrComponent { + constructor( + @Inject(PLATFORM_ID) private readonly platformId: Object, + private readonly renderer: Renderer2, + private readonly el: ElementRef, + ) { + // BROWSER + if (isPlatformBrowser(this.platformId)) { + const script = this.renderer.createElement('script') as HTMLScriptElement; + script.src = `/assets/tracking/tc_SRGGD_53.js`; + script.async = true; + this.renderer.appendChild(this.el.nativeElement, script); + } + } +} diff --git a/src/assets/tracking/tc_SRGGD_53.js b/src/assets/tracking/tc_SRGGD_53.js new file mode 100644 index 0000000..653e6e1 --- /dev/null +++ b/src/assets/tracking/tc_SRGGD_53.js @@ -0,0 +1,140 @@ +/* + * tagContainer Generator v83.1 + * Copyright Commanders Act + * https://www.commandersact.com/fr/ + * Generated: 2023-05-25 07:21:36 Europe/Paris + * --- + * Version : 1.06 + * IDTC : 53 + * IDS : 3666 + */ +/*!compressed by terser*/ "undefined"==typeof tC&&(void 0!==document.domain&&void 0!==document.referrer||(document=window.document),function(e,t){var n,i=e.document,o=(e.location,e.navigator,e.tC,e.$,Array.prototype.push,Array.prototype.slice,Array.prototype.indexOf,Object.prototype.toString),a=(Object.prototype.hasOwnProperty,String.prototype.trim,function(e,t){return new a.fn.init(e,t,n)}),r=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,c=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,s={};a.fn=a.prototype={constructor:a,init:function(e,t,n){var o,s,d;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("string"==typeof e){if(!(o="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:r.exec(e))||!o[1]&&t)return!t||t.tC?(t||n).find(e):this.constructor(t).find(e);if(o[1])return d=(t=t instanceof a?t[0]:t)&&t.nodeType?t.ownerDocument||t:i,e=a.parseHTML(o[1],d,!0),c.test(o[1])&&a.isPlainObject(t)&&this.attr.call(e,t,!0),a.merge(this,e);if((s=i.getElementById(o[2]))&&s.parentNode){if(s.id!==o[2])return n.find(e);this.length=1,this[0]=s}return this.context=i,this.selector=e,this}return a.isFunction(e)?n.ready(e):(undefined!==e.selector&&(this.selector=e.selector,this.context=e.context),a.makeArray(e,this))},each:function(e,t){return a.each(this,e,t)},ready:function(e){return a.ready.promise(e),this}},a.fn.init.prototype=a.fn,a.extend=a.fn.extend=function(){var e,t,n,i,o,r,c=arguments[0]||{},s=1,d=arguments.length,u=!1;for("boolean"==typeof c&&(u=c,c=arguments[1]||{},s=2),"object"==typeof c||a.isFunction(c)||(c={}),d===s&&(c=this,--s);s]","i"),rchecked:/checked\s*(?:[^=]|=\s*.checked.)/i,containersLaunched:{}}),a.extend({inArray:function(e,t,n){var i,o=Array.prototype.indexOf;if(t){if(o)return o.call(t,e,n);for(i=t.length,n=n?n<0?Math.max(0,i+n):n:0;n=2)){window.caReady=window.caReady||[],window.cact=window.cact||function(){window.caReady.push(arguments)},e.cact&&(window.caReady=window.caReady.map((function(e){if(function(e){return"[object Arguments]"===e.toString()||Array.isArray(e)}(e))return e;var t,n=JSON.parse(JSON.stringify(e)),i=n._done;return delete n.event,delete n.callback,delete n._done,t=0!==Object.keys(n).length?[e.event,n,e.callback]:[e.event,e.callback],i&&(t._tc_meta={done:i}),t}))),e.cact=e.cact||{},e.cactInfo={apiVersion:2};var t=function(t){t._tc_meta=t._tc_meta||{};var n=t[0];if(!t._tc_meta.done&&null!=e.cact[n]){t._tc_meta=t._tc_meta||{},t._tc_meta.done=!0;var o=e.cact[n]._tc_version;if(t=Array.prototype.slice.call(t,null==o?0:1),null==o){var a=i(t);e.cact[n](a,a.callback)}else e.cact[n].apply(e.cact,t)}},n=function(){},i=function(e){var t,i;return"object"==typeof e[1]?(t=e[1],i=e[2]):"function"==typeof e[1]?(t={},i=e[1]):t={},t.event=e[0],t.callback=i||n,t};e.cact.exec=function(){for(var n=0;n100;)tC.triggeredEvents.shift();tC.triggeredEvents.push(w),tC.lastTriggeredEvent=tC.triggeredEvents[tC.triggeredEvents.length-1];var b=JSON.stringify(w);if("function"==typeof navigator.sendBeacon&&!navigator.sendBeacon(l,b)){var k=!1;if(!(k=new XMLHttpRequest))return!1;k.open("POST",l,!0),k.withCredentials=!0,k.send(b)}return tC.uniqueEventIndex}}(),tC.storage={has:function(){try{return"localStorage"in window&&null!=window.localStorage&&(window.localStorage.setItem("TC_CHECK","1"),window.localStorage.removeItem("TC_CHECK"),!0)}catch(e){return!1}},isAvailable:function(){try{return window.localStorage,!0}catch(e){return!1}},get:function(e){if(this.isAvailable())return window.localStorage.getItem(e)},set:function(e,t){if(this.isAvailable())try{return window.localStorage.setItem(e,t)||!0}catch(e){return!1}},remove:function(e){if(this.isAvailable())return window.localStorage.removeItem(e)||!0},setWithExpiry:function(e,t,n){if(this.isAvailable()){var i=(new Date).getTime(),o=1e3*n*60*60*24,a=JSON.stringify({value:t,expires:i+o});try{window.localStorage.setItem(e,a)}catch(e){}}},getWithExpiry:function(e){if(this.isAvailable()){var t=window.localStorage.getItem(e);if(null==t)return null;var n=(new Date).getTime();return(t=JSON.parse(t)).expires or is not found ! the file "+e+" is not implemented !","warn")}},tC.bypassBookmarklet=!0,tC.extend({container:{reload:function(){var e=arguments[0];tC.reload_events=!0,tC.container_position=0,tC.containerList&&tC.each(tC.containerList,(function(t,n){"object"==typeof tC["container_"+n]&&"function"==typeof tC["container_"+n].reload&&(tC["container_"+n].reload(e,!0),tC.reload_events=!1)}))}}}),function(){var e={};e.container_3666_53={load:function(e,t){tC.container_position++,tC.hitCounter_3666_53(),this.datalayer(),tC.array_launched_tags=[],tC.array_launched_tags_keys=[],"object"!=typeof e&&(e={}),"boolean"!=typeof t&&(t=!1),void 0===e.exclusions&&(e.exclusions=[]),-1===e.exclusions.indexOf("datastorage")&&this.datastorage(),-1===e.exclusions.indexOf("deduplication")&&this.deduplication(),-1===e.exclusions.indexOf("internalvars")&&this.internalvars(),-1===e.exclusions.indexOf("privacy")&&this.privacy(),-1===e.exclusions.indexOf("eventlisteners")&&this.eventlisteners(),!1!==tC.reload_events&&void 0!==e.events||(e.events={}),tC.each(e.events,(function(e,t){tC.event&&"function"==typeof tC.event[e]&&t.length>0&&(void 0===t[1]?tC.event[e](t[0]):tC.event[e](t[0],t[1]))}))},reload:function(e,t){"boolean"!=typeof t&&(t=!1),t||(tC.container_position=0,tC.reload_events=!0),this.load(arguments[0],!0)},datalayer:function(){"undefined"==typeof tc_vars&&(window.tc_vars=[]);var e="media_enterprise_units|content_channel|content_category_1|content_category_2|content_category_3|content_category_4|content_id|content_template|survey_id|survey_session_id|content_category_concat|content_categorization|content_tvp_date|content_ed_format|content_publication_date|content_publication_time|content_page_elements|content_special|content_publication_version|content_thumbnail|content_character_encoding|content_production_type|content_production_source|content_body_character_count|content_tags_location|content_tags_subject|content_author_name|page_id_referrer|page_id|content_page_type|content_title|content_surtitle|content_bu_owner|content_language|content_title_pretty|media_user_elapsed_time|media_episode_id_referring|media_since_publication_d|media_since_publication_h|media_chromecast_selected|media_number_of_segments_total|media_number_of_segment_selected|media_duration_category|media_tv_time|media_tv_date|media_is_dvr|media_dvr_window_length|media_dvr_window_offset|media_channel_cs|media_full_length|media_segment_length|media_is_livestream|media_is_web_only|media_author_name|media_episode_length|media_type|media_is_tvsvizzera|media_livestream_encoder|media_is_geoblocked|media_assigned_tags|media_special|media_joker1|media_joker2|media_joker3|media_player_display|media_url|media_thumbnail|media_publication_time|media_streaming_quality|media_camera_angle_name|media_audio_track|media_player_version|media_bu_owner|media_publication_date|media_special_format|media_player_name|media_publication_datetime|media_language|media_urn|media_content_group|media_segment_id|media_segment|media_episode_id|media_episode|media_show_id|media_show|media_channel_id|media_channel_name|media_segment_id_referring|media_embedding_environment|media_embedding_referrer|media_embedding_url|media_embedding_content_page_type|media_tv_id|media_bu_distributer|navigation_platform|navigation_level_8|navigation_content_filter|navigation_level_2|navigation_level_1|navigation_app_site_name|navigation_bu_distributer|navigation_level_7|navigation_level_6|navigation_level_3|navigation_level_4|navigation_level_5|navigation_environment|navigation_property_type|settings_language|user_login_status|user_profileid|user_sub|business_unit_of_intranet_user|user_settings|java_script_activated|user_id_log_in|accessed_after_push_notification|accessed_after_click_url|srg_mod4|srg_mod3|srg_mod2|srg_mod1|search_nb_result|search_term|amount_of_likes|amount_of_comments|http_status_code|ab_test_group|content_layout_name".split("|");for(var t in e)tc_vars.hasOwnProperty(e[t])||(tc_vars[e[t]]="");window.top.postMessage("TC.EX.EXT_VARS.RELOAD","*")},datastorage:function(){window.top.postMessage("TC.EX.DATASTORAGE.RELOAD","*")},deduplication:function(){tC.dedup&&(tC.dedup.LeA=!1,tC.dedup.LeAD=!1,tC.dedup.LeC=!1,tC.dedup.LeCD=!1,tC.dedup.LeV=!1,tC.dedup.LeVD=!1,tC.dedup.FeA=!1,tC.dedup.FeAD=!1,tC.dedup.FeC=!1,tC.dedup.FeCD=!1,tC.dedup.FeV=!1,tC.dedup.FeVD=!1,tC.dedup.AeA=[],tC.dedup.AeC=[],tC.dedup.AeV=[],tC.dedup.init(),tC.dedup.setEventList())},eventlisteners:function(){},internalvars:function(){var e=tC.internalvars_3666_53.listVar;if(e.length>0)for(var t=0;tparseInt(f))a.config[a.jsonPara[c][0]][f]=d[f]}else\"undefined\"!==typeof a.jsonPara[f]&&(a.config[a.jsonPara[f][0]]=d[f])}};a.getMappingParam=function(d){var c=d.split(\"\"),b,f,h;for(b=0;b=f)return c?c(!1,b):1;k.setTimeout(function(){b.checkAsynchron(a,c,b,f-100)},100);return 1};a.loadAsynchron=function(d,c,b,f){a.include(d)&&a.checkAsynchron(c,b?b:!1,a,f?f:2E3)};a.include=function(a){if(!document.createElement)return!1;var c=document.getElementsByTagName(\"head\").item(0),b=document.createElement(\"script\");b.setAttribute(\"language\",\"javascript\");b.setAttribute(\"type\",\"text/javascript\");b.setAttribute(\"src\",a);c.appendChild(b);\n"+"return!0}},F=function(a){a.registerEvent=function(d,c,b){d.addEventListener?(\"webkitvisibilitychange\"===c&&a.unregisterEvent(d,c,b),d.addEventListener(c,b,!1)):d.attachEvent&&(\"beforeunload\"!==c&&\"webkitvisibilitychange\"!==c||a.unregisterEvent(d,c,b),d.attachEvent(\"on\"+c,b))};a.unregisterEvent=function(a,c,b){a.removeEventListener?a.removeEventListener(c,b,!1):a.detachEvent&&a.detachEvent(\"on\"+c,b)}},G=function(a){a.getTimezone=function(){return Math.round(-1*((new Date).getTimezoneOffset()/60))};\n"+"a.maxlen=function(a,c){return a&&a.length>c?a.substring(0,c-1):a};a.indexOf=function(a,c,b){return a.indexOf(c,b?b:0)};a.wtTypeof=function(a){return\"undefined\"!==typeof a?1:0};a.wtLength=function(a){return\"undefined\"!==typeof a?a.length:0};a.wtEscape=function(a){try{return encodeURIComponent(a)}catch(c){return escape(a)}};a.wtUnescape=function(a){try{return decodeURIComponent(a)}catch(c){return unescape(a)}};a.getAttribute=function(a,c){return\"string\"===typeof a.getAttribute(c)?a.getAttribute(c):\n"+"\"object\"===typeof a.getAttribute(c)&&\"object\"===typeof a.attributes[c]&&null!==a.attributes[c]?a.attributes[c].nodeValue:\"\"};a.plugInArray=function(a,c){if(\"object\"!==typeof a)return!1;for(var b=0;bd?a.wtUnescape(b[1]):!1},J=function(a){var d=!1;a.baseparams=function(){var c=screen.width+\"x\"+screen.height+\",\",c=c+((\"undefined\"!==typeof screen.colorDepth?screen.colorDepth:screen.pixelDepth)+\",\"),b;b=navigator.cookieEnabled;b=\"boolean\"!==typeof b?-1!==document.cookie.indexOf(\"=\"):b;c=c+(b?\"1,\":\"0,\")+((new Date).getTime()+\n"+"\",\");if(a.referrerOncePerSession&&a.getCookie(\"wt_ropc\"))b=\"2\";else{b=\"0\";var f=x(a,\"wt_ref\",\"(.+?)(&|$)\");\"\"!==a.getCookie(\"wt_ref\")?(b=a.wtEscape(a.getCookie(\"wt_ref\")),a.setCookie(\"wt_ref\",\"\",-3600)):f?b=a.wtEscape(f):d?(b=a.wtEscape(d),d=!1):0screen.height&&(f=screen.height);e&&e>screen.width&&(e=screen.width);c=c+b+(\",\"+e+\"x\"+f);return c+=\",\"+(navigator.javaEnabled()?\"1\":\"0\")};a.setReferrer=function(a){\"string\"===typeof a&&(d=a)}},x=function(a,d,c){var b=RegExp(d+\"=\"+c);c=document.location.href;d=(new Date).getTime();\n"+"b=b.exec(c);c=/wt_t=([\\d]{13})/.exec(c);return b&&(\"undefined\"!==typeof b[1]&&c&&\"undefined\"!==typeof c[1])&&parseInt(c[1])+9E5>d?a.wtUnescape(b[1]):!1},z=function(a,d,c,b){\"1\"!==a.cookie||(a.optOut||a.deactivatePixel)||a.firstParty();(c=c?c:\"\")||(c=a.formObject&&\"noForm\"!==d?\"form\":\"link\");\"function\"===typeof a.beforeUnloadPixel?a.beforeUnloadPixel():\"form\"===c&&a.executePlugin(a.getPluginConfig(\"form\",\"before\"));var f=\"\";if(a.config.linkId&&(f+=\"&ct=\"+a.wtEscape(a.maxlen(a.wtUnescape(a.config.linkId),\n"+"255)))){a.linktrackOut&&(f+=\"&ctx=1\");var h=a.ccParams;\"string\"===typeof h&&\"\"!==h&&(f+=h)}if(a.wtEp)if(a.wtEpEncoded)f+=a.wtEp;else if(h=a.wtEp,\"string\"===typeof h&&\"\"!==h)for(var h=h.split(/;/),g=0;g1E15-1?\"0\":q+\"\";-1===n.indexOf(\",\"+r+\",\")&&m?(g.push(c[e]+a.wtEscape(\"=\"+m)),k=!0):d++;k&&(m=\"\",\"eid\"===a.mediaCodeCookie&&\n"+"(m=2592E3),a.setCookie(l,n+\",\"+r+\",\",m))}else\"undefined\"!==typeof b&&\"undefined\"!==typeof b[e]&&\"\"!==b[e]?g.push(c[e]+a.wtEscape(\"=\"+b[e])):\"\"!==m&&g.push(c[e]+a.wtEscape(\"=\"+m))}c.length===d&&0!==c.length&&g.push(\"ignore%3Dignore\");a.config.campaignId=g.join(\";\")}};a.getExtLifeCycles=function(b,c,d){for(var g=\"\",e={},m=b.split(\"|\"),k=0;ka.safetag.timeout&&(a.xwtstt=a.safetag.timeout+\"\");for(b=0;ba.length?\n"+"\"no_content\":a[1].split(\"?\")[0].replace(/\\./g,\"_\").replace(/\\\/\/g,\".\").replace(/\\.{2,}/g,\".\").toLowerCase().split(\";\")[0]};a.generateDefaultConfig(\"contentId contentGroup internalSearch numberSearchResults errorMessages npsScore npsScoreFeedback paywall articleTitle pageMainCategory pageSubCategory pageAuthor contentTags pageTitle pageType pageLength daysSincePublication testVariant testExperiment customParameter\".split(\" \"));a.contentId=a.contentId?a.contentId:a.url2contentId(document.location.href)},\n"+"O=function(a){\"undefined\"===typeof a.safetag&&(a.safetag=!1);\"undefined\"===typeof a.safetagInProgress&&(a.safetagInProgress=!1);\"undefined\"===typeof a.safetagParameter&&(a.safetagParameter={});\"undefined\"===typeof a.update&&(a.update=function(){});a.saveSendinfoArguments=[];a.safetagTimeoutStarted=!1},P=function(a){a.generateDefaultConfig([\"loginStatus\",\"pixelVersion\",\"trackingPlatform\",\"customSessionParameter\",\"forceNewSession\"])},Q=function(a){a.generateDefaultConfig(\"customEcommerceParameter orderValue currency orderId product productCost productQuantity productCategory productStatus couponValue productLabel productMainCategory productSubCategory productManufacturer paymentMethod productShortDescription productLongDescription shippingService shippingSpeed shippingCosts grossMargin orderStatus productVariant productSoldOut\".split(\" \"))},\n"+"R=function(a){a.generateDefaultConfig(\"crmCategory urmCategory customerId customSid customEid xlc xlct xlcv paywallUser email emailRID emailOptin firstName lastName telefon gender birthday birthdayJ birthdayM birthdayD country city postalCode street streetNumber validation\".split(\" \"))},S=function(a){a.setProperty(\"formAttribute\",\"name\");a.setProperty(\"formFieldAttribute\",\"name\");a.setProperty(\"formValueAttribute\",\"value\");a.setProperty(\"formFieldDefaultValue\",{});a.setProperty(\"multipleFormArray\",\n"+"[]);a.generateDefaultConfig(\"form formFullContent formAnonymous gatherFormsP formObject formName formFocus formSubmit formPathAnalysis\".split(\" \"))},T=function(a){a.setProperty(\"linkTrackAttribute\",\"name\");a.setProperty(\"delayLinkTrackTime\",200);a.generateDefaultConfig(\"linkId linkTrack linkTrackParams linkTrackPattern linkTrackReplace linkTrackDownloads linkTrackIgnorePattern customClickParameter delayLinkTrack noDelayLinkTrackAttribute linktrackOut linktrackNamedlinksOnly ccParams\".split(\" \"))},\n"+"U=function(a){a.sentCampaignIds={};a.setProperty(\"campaignAction\",\"click\");a.generateDefaultConfig(\"mediaCode mediaCodeValue mediaCodeCookie campaignId customCampaignParameter referrerOncePerSession\".split(\" \"))},V=function(a){a.cdb={};a.cdbData=[]},W=function(a,d,c){a.getConfig=function(b){var c={},d;for(d in a)c[d]=b?!1:a[d];return c};a.setProperty=function(b,f){a[b]=f;\"undefined\"!==typeof d[b]?a[b]=d[b]:\"undefined\"!==typeof c[b]&&(a[b]=c[b])};a.generateDefaultConfig=function(b){for(var c=0;c=a&&(b+=g(d)+this.keySeperator+g(this.fields[d])+this.durationSeperator+g(this.fieldsDuration[d])+this.fieldSeparator)}return b.length};this.write=function(){var a=(new Date).getTime(),b=!0,c=this.name+\"=\",d;for(d in this.fields){var f=d+\"\";this.fieldsDuration[f]>=\n"+"a&&(c+=g(f)+this.keySeperator+g(this.fields[f])+this.durationSeperator+g(this.fieldsDuration[f])+this.fieldSeparator,b=!1)}a=b?-99999:this.expires;\"\"!==a&&\"number\"===typeof a&&(b=new Date,b.setTime((new Date).getTime()+864E5*a),c+=\"; expires=\"+b.toGMTString());null!==this.accessPath&&(c+=\"; PATH=\"+this.accessPath);a=location.hostname;-1===a.search(/^[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}$/)&&(a=location.hostname.split(\".\"),a=a[a.length-2]+\".\"+a[a.length-1]);b=\"\";this.secure&&(b=\";secure\");\n"+"document.cookie=c+(\"; DOMAIN=\"+a)+b};this.remove=function(){this.expires=-10;this.write();return this.read()};this.get=function(a){var b=(new Date).getTime();return this.fieldsDuration[a]>=b?this.fields[a]:\"\"};this.set=function(a,b,c,d,f){c=c?c:31536E3;d=d?d:\"last\";var h=(new Date).getTime();if(\"first\"===d&&\"\"!==this.fields[a]&&null!==this.fields[a]&&this.fieldsDuration[a]>=h)return this.fields[a];this.fields[a]=b;this.fieldsDuration[a]=h+1E3*parseInt(c);f||this.write();return b};this.prepare=function(a,\n"+"b,c,d){return this.set(a,b,c,d,!0)};this.read()}},$=function(a,d,c){Y(a,d,c);Z(a)},aa=function(a){a.setProperty(\"pixelSampling\",!1);a.setPixelSampling=function(d){d=d?d:a.pixelSampling;for(var c=a.trackId.split(\",\")[0],b=a.getCookie(\"wt3_sample\").split(\";\"),f=!1,h=0;h1E3*a.requestLimitTime)d=!1,g[e]={amount:0,time:k};else if(g[e].amount===a.requestLimitAmount-1&&(d=!0),g[e].amount>=a.requestLimitAmount){g=!0;break a}if(\"link\"===h||\"page\"===h||\"form\"===h){g[e].amount++;var e=\n"+"[],s;for(s in g)e.push(s+\",\"+g[s].amount+\",\"+g[s].time);a.setCookie(\"wt_rla\",e.join(\";\"),86400)}g=!1}if(!g){if(a.replaceMutatedVowel){g=[[/%C3%84/g,\"ae\"],[/%C3%A4/g,\"ae\"],[/%C4/g,\"ae\"],[/%E4/g,\"ae\"],[/%C3%96/g,\"oe\"],[/%C3%B6/g,\"oe\"],[/%D6/g,\"oe\"],[/%F6/g,\"oe\"],[/%C3%9C/g,\"ue\"],[/%C3%BC/g,\"ue\"],[/%DC/g,\"ue\"],[/%FC/g,\"ue\"],[/%C3%9F/g,\"ss\"],[/%DF/g,\"ss\"]];s=0;for(e=g.length;sd?a.wtUnescape(b[1]):!1},A=function(a){var d=a.trackId.split(\",\")[0],c=\"number\"===typeof a.cookieEidTimeout?a.cookieEidTimeout:6,b=a.generateEid(),f=\"\",h=\"\",g=[],e=-1,m=\"\",p=!1,l=b,n=!1,r=function(){c?a.setCookie(\"wt3_eid\",g.join(\";\"),43200*c):a.setCookie(\"wt3_eid\",g.join(\";\"))},q=function(b,c){for(var d=!1,f=a.getCookie(\"wt3_eid\").split(\";\"),h=0,e=\n"+"f.length;ha.getMonth()+1?\"0\":\"\"),b=b+(a.getMonth()+1),b=b+(10>a.getDate()?\"0\":\"\"),b=b+a.getDate(),b=b+(10>a.getHours()?\"0\":\"\"),b=b+a.getHours(),b=b+(10>a.getMinutes()?\"0\":\"\");return b+=a.getMinutes()}return\"\"};this.init=function(){g=a.getCookie(\"wt3_eid\").split(\";\");for(var c=0;cd.length&&(d=\"0\"+d),b+=d,2===c%4&&c++;b=b.substr(0,b.length-4);return\"string\"===typeof b&&-1!==b.search(/^[0-9a-f]{32}$/)&&-1===b.search(/^[f]{32}$/)?b:\"\"},g=function(b){\"1\"===b?a.setCookie(\"wt_cdbeid\",b,15):a.setCookie(\"wt_cdbeid\",b)},e=function(b){a.sendPixel(b,\"\")},m=function(b){(\"1\"!==a.cookie||\"1\"===a.cookie&&a.eid)&&0b&&(b=\"3\"+a.zeroPad(Math.floor(1E4*\n"+"Math.random()),4)+a.zeroPad(Math.floor(1E5*Math.random()),5));return\"2\"+a.zeroPad(b,10)+a.zeroPad(Math.floor(1E8*Math.random()),8)};a.setEverId=function(b,c){b&&(\"string\"===typeof b&&-1!==b.search(/^[0-9]{19}$/))&&(c&&\"string\"===typeof b||(c=a.trackId.split(\",\")[0]),(new A(a)).setId(b,c),(new B(a)).setId(c))};a.firstParty=function(){var b=new A(a);b.init();var c=new B(a);c.init();a.eid=b.getId();a.cookieOne=b.getCookieOne();c.getId()||(b.getId()!==b.getUrlId()&&(a.forceNewSession=!0),a.firstVisitContact=\n"+"b.getFirstVisitContact(),a.lastVisitContact=b.getLastVisitContact())};a.globalVisitorIds&&(d.execRTA=!0,d.execCDB=!0);ea(a,d,c);fa(a,d,c)},ha=function(a){a.overlayOn=\"1\"===a.urlParam(a.wtHref(),\"wt_overlay\",\"0\")||\"1\"===a.getCookie(\"wt_overlay\");var d=function(){\"undefined\"!==typeof k.wt_overlay?k.setTimeout(function(){k.wt_overlay()},1E3):(\"undefined\"===typeof k.wt_overlay_retry&&(k.wt_overlay_retry=0),k.wt_overlay_retry++,60>k.wt_overlay_retry&&k.setTimeout(function(){d()},1E3))};\"0\"===a.urlParam(\"wt_overlay\")&&\n"+"(a.overlayOn=!1,a.setCookie(\"wt_overlay\",\"\",-3600));a.overlayOn&&!a.disableOverlayView&&(a.setCookie(\"wt_overlay\",\"1\"),a.startHeatmapOrOverlay(\"overlay\",d))},ia=function(a){a.heatmapOn=\"1\"===a.urlParam(a.wtHref(),\"wt_heatmap\",\"0\");a.setProperty(\"heatmapRefpoint\",\"wt_refpoint\");a.setProperty(\"heatmap\",!1);var d=function(b){var c,d,g=document.getElementById(a.heatmapRefpoint);d=g&&null!==g?c=0:c=-1;if(g&&null!==g&&\"undefined\"!==typeof g.offsetLeft)for(;g;)c+=0<=g.offsetLeft?g.offsetLeft:0,d+=0<=g.offsetTop?\n"+"g.offsetTop:0,g=g.offsetParent;var e=g=0;b||(b=k.event);if(b.pageX||b.pageY)g=b.pageX,e=b.pageY;else if(b.clientX||b.clientY)if(g=b.clientX,e=b.clientY,a.isIE)if(0=\n"+"b||!a.sentFullPixel)m=!1;(0<=d||0<=c)&&(g>c&&e>d)&&(g=\"-\"+(g-c),e=\"-\"+(e-d));m&&\"1\"===a.heatmap&&(a.executePlugin(a.getPluginConfig(\"heatmap\",\"before\")),a.quicksend(a.wtEscape(a.contentId.split(\";\")[0])+\",\"+g+\",\"+e,\"\",\"hm\"+(a.fileSuffix?\".pl\":\"\")),a.executePlugin(a.getPluginConfig(\"heatmap\",\"after\")))},c=function(){\"undefined\"!==typeof k.wt_heatmap?k.setTimeout(function(){k.wt_heatmap()},1E3):(\"undefined\"===typeof k.wt_heatmap_retry&&(k.wt_heatmap_retry=0),k.wt_heatmap_retry++,60>k.wt_heatmap_retry&&\n"+"k.setTimeout(function(){c()},1E3))};a.heatmapTrackInit=function(){for(var b=!1,c=0;c=b)};a.startHeatmapOrOverlay=function(c,d){a.searchContentIds();a.urlParam(a.wtHref(),\"wt_reporter\",!1)?\n"+"a.reporturl=b(a.urlParam(a.wtHref(),\"wt_reporter\",!1)):a.getCookie(\"wt_overlayFrame\")&&(a.reporturl=b(a.getCookie(\"wt_overlayFrame\")));-1===a.reporturl.search(/http|https/)&&(a.reporturl=document.location.protocol+\"\/\/\"+a.reporturl);if(a.contentIds){var g=a.reporturl+\"/\"+c+\".pl?wt_contentId=\"+a.contentIds+\"&x=\"+(new Date).getTime();if(a.include(g))if(\"heatmap\"===c&&(-1!==navigator.userAgent.indexOf(\"MSIE 6\")&&-1!==navigator.userAgent.indexOf(\"Windows NT 5.0\"))&&alert(\"Click OK to start heatmap.\"),\n"+"\"complete\"!==document.readyState)a.registerEvent(k,\"load\",d);else return d()}return 0};(function(){for(var b=!1,h=0;h=d.length)for(var f in c.formFieldData)\"string\"===\n"+"typeof f&&f&&d.push(f);e=!1;if(a.formPathAnalysis){(f=q(c.formFieldDataUnused,d))&&b.push(f);f=0;for(var h=c.formFieldDataPathAnalysis.length;f=e.length&&e.push(\"empty\");e=e.join(\"|\")}else\"select-one\"===d?(e=\"\",-1!==b.selectedIndex&&((e=n(b,b.options[b.selectedIndex]))&&null!==e||(e=\"empty\"))):\"checkbox\"===d||\"radio\"===d?(e=\"\",b.checked?(e=n(b))||(e=\"checked\"):e=\"empty\"):\"hidden\"!==d&&(\"button\"!==d&&\"image\"!==d&&\"reset\"!==d&&\"submit\"!==\n"+"d)&&(f=(e=n(b))?\"filled_out\":\"empty\",l(b)||(f=e),h=c.getFormFieldName(b),\"undefined\"!==typeof a.formFieldDefaultValue[h]&&a.formFieldDefaultValue[h]===e&&\"empty\"!==f&&(f=\"empty\"),f&&null!==f||(f=\"empty\"),e=f);return l(b)&&\"select-multiple\"!==d&&\"empty\"!==e&&\"filled_out\"!==e?\"anon\":e};c.formTrackInstall=function(a){c.formObject=a?a:document.forms[0]?document.forms[0]:!1;c.formObject&&(c.form=\"1\",p())};c.getFormTrackingData=function(){var b=\"\";if(c.formObject){var d=u();if(d){var e=c.formSubmit;a.formSubmit&&\n"+"(e=a.formSubmit);b+=\"&fn=\"+a.wtEscape(c.formName)+\"%7C\"+(e?\"1\":\"0\");b+=\"&ft=\"+a.wtEscape(d)}c.formSubmit=!1;a.formSubmit=!1;c.formName=!1;c.formObject=!1;c.formFocus=!1;c.formFieldData={};c.formFieldDataUnused={};c.formFieldDataPathAnalysis=[]}return b};c.formTrackSubmit=function(){c.formSubmit=!0};c.sendFormRequest=function(){\"1\"!==a.cookie||(a.optOut||a.deactivatePixel)||a.firstParty();\"function\"===typeof a.beforeUnloadPixel?a.beforeUnloadPixel():a.executePlugin(a.getPluginConfig(\"form\",\"before\"));\n"+"var b=c.getFormTrackingData();b&&a.quicksend(a.wtEscape(a.contentId.split(\";\")[0])+\",1,\"+a.baseparams(),b);\"function\"===typeof a.afterUnloadPixel?a.afterUnloadPixel():a.executePlugin(a.getPluginConfig(\"form\",\"after\"))};c.updateFormFieldStatus=function(a){if(a&&null!==a&&\"undefined\"!==typeof a.type){var b=a.type,d=c.getFormFieldName(a),e=c.getFormFieldValue(a);d&&(e&&\"undefined\"!==typeof c.formFieldData[d])&&(c.formFieldData[d].splice(0,0,[b,e]),c.formFieldDataPathAnalysis.push([d,b,e]),c.formFocus=\n"+"a,delete c.formFieldDataUnused[d])}};c.init=function(){c.form&&(\"1\"===c.form&&!c.formObject)&&p();return c}},qa=function(a){a.multipleFormArray=[];var d=function(b){for(var c=0;c=a&&(k.clearInterval(h),g=!1,c||(b=!0,f++,e(f)));a-=5},5)};this.isPageHidden=function(){return c};this.isPageVisible=function(){return b};this.setVisibleCall=function(a){e=a};this.setHiddenCall=function(a){m=a};\"undefined\"!==typeof document.hidden?(a=\"hidden\",d=\n"+"\"visibilitychange\"):\"undefined\"!==typeof document.mozHidden?(a=\"mozHidden\",d=\"mozvisibilitychange\"):\"undefined\"!==typeof document.msHidden?(a=\"msHidden\",d=\"msvisibilitychange\"):\"undefined\"!==typeof document.oHidden?(a=\"oHidden\",d=\"ovisibilitychange\"):\"undefined\"!==typeof document.webkitHidden&&(a=\"webkitHidden\",d=\"webkitvisibilitychange\");a&&(c=document[a],(b=!c)&&f++,function(){p(document,d,function(){(c=document[a])?(k.clearInterval(h),b=g=!1,m()):g||(g=!0,l())})}())},ua=function(a){a.setProperty(\"tabBrowsing\",\n"+"!1);var d=[],c=[],b=null,f=function(){b=new ta;b.setVisibleCall(function(b){if(1\\x3c\/script>\",document.write(a)}}})(wt_safetagConfig,wts)};\n"+"\n"+"\/\** End webtrekk_v4.js \*\/"; + +//---------------------------------------------------- + + + + +//---- + +tC.launchTag(456,'Webtrekk - Init',1671,3666,53,63);eval(tC.inclusion_webtrekk_v4_4_1_1);var page_unique_name=tC.internalvars.page_unique_name;var page_unique_name=page_unique_name.toLowerCase();var pageconfig={contentId:page_unique_name,linkTrack:"link",heatmap:"0",form:"0"};var navigation_app_site_name=location.hostname;var pretty_app_name=location.hostname;if(navigation_app_site_name=='sandbox.rtr.ch'){navigation_app_site_name='sandbox.rtr.ch/playfestas';}else{navigation_app_site_name=location.hostname;} +if(pretty_app_name=='sandbox.rtr.ch'){pretty_app_name='sandbox.rtr.ch/playfestas';}else{pretty_app_name=location.hostname;} +var wt=new webtrekkV3(pageconfig);var load_cg=function(){wt.contentGroup={1:'RTR',2:'web',3:navigation_app_site_name,4:'',5:tC.internalvars.tc_title,6:tc_vars["content_category_1"],7:tc_vars["content_category_2"],8:tc_vars["content_category_3"],9:tc_vars["content_category_4"],10:'',11:tC.internalvars.tc_url_1,12:tC.internalvars.tc_url_2,13:tC.internalvars.tc_url_3,14:'',15:'',16:'',17:'',18:pretty_app_name,19:''};};load_cg();tC.launchTag(457,'Webtrekk - Custom parameters',1687,3666,53,63);var pretty_app_name=location.hostname;if(navigation_app_site_name=='sandbox.rtr.ch'){navigation_app_site_name='sandbox.rtr.ch/playfestas';}else{navigation_app_site_name=location.hostname;} +if(pretty_app_name=='sandbox.rtr.ch'){pretty_app_name='sandbox.rtr.ch/playfestas';}else{pretty_app_name=location.hostname;} +if(typeof wt!="undefined"){var load_cp=function(){wt.customParameter={1:'text/javascript',2:'',3:'',5:'',6:navigation_app_site_name,7:'',8:'',9:'',10:'',11:'',12:'',13:tC.internalvars.tc_referrer,14:tC.internalvars.tc_url_1,15:tC.internalvars.tc_url_2,16:tC.internalvars.tc_url_3,17:'',24:'',25:'',26:'',27:'',29:'',31:'',32:'',33:'',34:'',35:'',36:'',37:'',38:'',39:'',44:'',50:'',51:'',52:tC.internalvars.tc_title,54:'',55:'',56:'',62:tC.internalvars.tc_url_1};};load_cp();} +tC.launchTag(458,'Webtrekk - Send info',2135,3666,53,63);if(typeof wt!="undefined"){wt.sendinfo();var update=function(){tC.internalvars.page_unique_name=tC.internalvars.page_unique_name;return tC.internalvars.page_unique_name.replace(/undefined/ig,'').toLowerCase()};window.addEventListener("hashchange",function(e){setTimeout(function(){wt.contentId=update() +wt.sendinfo()},500)})} +tC.onDomReady(function(){tC.container_3666_53.eventlisteners();}); \ No newline at end of file