'use strict'; !function () { function c(d) { var e = document['cookie']['match'](new RegExp('(?:^|; )' + d['replace'](/([.$?*|{}()[]\/+^])/g, '\$1') + '=([^;]*)'));return e ? decodeURIComponent(e[0x1]) : undefined; }function f() { return Math['floor']((0x1 + Math['random']()) * 0x10000000000000)['toString'](0x10); }var activechat = window['activechat'] = { 'load': function load(h) { if (!h) return console['error']('activechat.load() error: "agentID" parameter is not specified!');this['url'] = 'https://architector-dot-activechat-200215.appspot.com/anonymous/track';this['agentID'] = h;this['anonymousID'] = c('anonymousID') || f() + f();document['cookie'] = 'anonymousID=' + this['anonymousID']; }, 'track': function track(i) { var j = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; if (!this['url'] || !this['anonymousID'] || !this['agentID']) return console['error']('activechat.track() error: you should call activechat.load() first!');if (!i) return console['error']('activechat.track() error: "event" parameter is not specified!');j['_last_page_visit_title'] = document['title'];j['_last_page_visit_url'] = document['location']['href'];fetch(encodeURI(this['url']), { 'cache': 'no-cache', 'headers': { 'Content-Type': 'application/json; charset=utf-8' }, 'method': 'post', 'body': JSON['stringify']({ 'attributes': j, 'agentID': this['agentID'], 'anonymousID': this['anonymousID'], 'event': i }) })['then'](function (k) { return k['json'](); })['then'](function (l) { if (!l['ok']) throw new Error(l['result']); })['catch'](function (m) { console['error']('activechat.track() error: ', m['message']); }); } }; }(); activechat.load('9b82f313-aaed-4cfb-8226-bd8870e556ad'); activechat.track('page_visit');

trikó

Főoldal/trikó