// Arquivo de config DTracking var _dPosclickVersion = "1.0"; var _dPosclickSite = "2858"; function _getdPosclickQueryParams(_getdPosclickQS) { _getdPosclickQS = _getdPosclickQS.split("+").join(" "); var _dPosclickParams = {}, _dPosclickTokens, _dPosclickRe = /[?&]?([^=]+)=([^&]*)/g; while (_dPosclickTokens = _dPosclickRe.exec(_getdPosclickQS)) { _dPosclickParams[decodeURIComponent(_dPosclickTokens[1])] = decodeURIComponent(_dPosclickTokens[2]); } return _dPosclickParams; } function _setdPosclickCookie(_dPosclickCname,_dPosclickValue) { var _dPosclickExdate=new Date(); var _dPosclickTime = _dPosclickExdate.getTime(); _dPosclickTime += 3600 * 1000; _dPosclickExdate.setTime(_dPosclickTime); document.cookie = _dPosclickCname + '=' + _dPosclickValue + '; expires=' + _dPosclickExdate.toGMTString() + '; path=/'; } function _getdPosclickCookie(_dPosclickCname) { var _dPosclickI,_dPosclickX,_dPosclickY,__ARRcookies=document.cookie.split(";"); for (_dPosclickI=0;_dPosclickI<__ARRcookies.length;_dPosclickI++) { _dPosclickX=__ARRcookies[_dPosclickI].substr(0,__ARRcookies[_dPosclickI].indexOf("=")); _dPosclickY=__ARRcookies[_dPosclickI].substr(__ARRcookies[_dPosclickI].indexOf("=")+1); _dPosclickX=_dPosclickX.replace(/^\s+|\s+$/g,""); if (_dPosclickX==_dPosclickCname) { return unescape(_dPosclickY); } } } var _dPosclickQuery = _getdPosclickQueryParams(document.location.search); if (_dPosclickQuery.__dPosclick != undefined) { _setdPosclickCookie('_dPosclickCookie', _dPosclickQuery.__dPosclick); } var _dPosclickCookieValue = _getdPosclickCookie("_dPosclickCookie"); if (_dPosclickCookieValue!=null && _dPosclickCookieValue!="") { var _dPosclickGA = document.createElement('script'); _dPosclickGA.type = 'text/javascript'; _dPosclickGA.async = true; _dPosclickGA.src = document.location.protocol + '//receiver.posclick.dinamize.com/posclick/js/'+_dPosclickVersion+'?dPosclickCookie='+_dPosclickCookieValue+'&dPosclickSite='+_dPosclickSite; var _dPosclickS = document.getElementsByTagName('script')[0]; _dPosclickS.parentNode.insertBefore(_dPosclickGA, _dPosclickS); } function _dAutomationGtmRegisterAccess(_dAutomationGtmMethod, _dAutomationGtmParams) { var _dAutomationGtmCookieValue = _getdPosclickCookie("_dPosclickCookie"); if (_dAutomationGtmCookieValue!=null && _dAutomationGtmCookieValue!="") { _setdPosclickCookie('_dPosclickCookie', _dAutomationGtmCookieValue); _dAutomationGtmParams["_dAutomationGtmCookie"] = _dAutomationGtmCookieValue; } var _dAutomationGtmHashValue = _getdPosclickCookie("_dAutomationGtmSessionCookie"); if (_dAutomationGtmHashValue!=null && _dAutomationGtmHashValue!="") { _dAutomationGtmParams["_dAutomationGtmSessionCookie"] = _dAutomationGtmHashValue; _setdPosclickCookie('_dAutomationGtmSessionCookie', _dAutomationGtmHashValue); } else { var _dAutomationGtmHashNewValue = new Date().getTime(); _dAutomationGtmHashNewValue += "." + Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15); _dAutomationGtmParams["_dAutomationGtmSessionCookie"] = _dAutomationGtmHashNewValue; _setdPosclickCookie('_dAutomationGtmSessionCookie', _dAutomationGtmHashNewValue); } var _dAutomationGtmGA = document.createElement('img'); _dAutomationGtmGA.src = document.location.protocol + '//receiver.posclick.dinamize.com/tagmanager/access/?method='+_dAutomationGtmMethod+'¶ms='+encodeURIComponent(JSON.stringify(_dAutomationGtmParams))+'&a='+Math.floor((Math.random()*99999)+1); var _dAutomationGtmS = document.getElementsByTagName('script')[0]; _dAutomationGtmS.parentNode.insertBefore(_dAutomationGtmGA, _dAutomationGtmS); } function _dAutomationGtmAddTimer(_dAutomationGtmKey, _dAutomationGtmHash, _dAutomationGtmParams) { _dAutomationGtmParams["_dAutomationGtmKey"] = _dAutomationGtmKey; _dAutomationGtmParams["_dAutomationGtmHash"] = _dAutomationGtmHash; _dAutomationGtmRegisterAccess("add_timer", _dAutomationGtmParams); } function _dAutomationGtmCloseTimer(_dAutomationGtmKey, _dAutomationGtmHash) { var _dAutomationGtmParams = {}; _dAutomationGtmParams["_dAutomationGtmKey"] = _dAutomationGtmKey; _dAutomationGtmParams["_dAutomationGtmHash"] = _dAutomationGtmHash; _dAutomationGtmRegisterAccess("close_timer", _dAutomationGtmParams); } function _dAutomationGtmAccess(_dAutomationGtmKey, _dAutomationGtmHash, _dAutomationGtmParams) { _dAutomationGtmParams["_dAutomationGtmKey"] = _dAutomationGtmKey; _dAutomationGtmParams["_dAutomationGtmHash"] = _dAutomationGtmHash; _dAutomationGtmRegisterAccess("access", _dAutomationGtmParams); }

APRESENTA:

REFLEXÃO.

  • Black Facebook Icon
  • Black YouTube Icon
  • Black LinkedIn Icon
Posts em breve
Explore outras categorias neste blog ou volte mais tarde.