if ( !window[ "thrive" ] ) { window[ "thrive" ] = {}; window[ "thrive" ].performance = {}; window[ "thrive" ].performance.uieRun = (new Date()).getTime(); ( function () { var b64_digits = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_' this.i_to_b64 = function(i) { var b64 = '' while (i>0) { b64 = b64_digits[i%64]+b64 i = Math.floor(i/64) } return b64 } this.urlsafe_b64_encode = function(object) { return btoa(JSON.stringify(object)).replace(/\+/g,'-').replace(/\//g,'_').replace(/\=+$/,'') } this.generate_uuid = function(msec) { var b = '' for (var i=0; i<33; i++) { b += String.fromCharCode(Math.floor((Math.random()) * 256)) } return ('AAAAAAAAAAAA'+this.i_to_b64(msec)).slice(-12) + ('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'+this.urlsafe_b64_encode(b)).slice(-44) } this.get_query_param = function(key) { var vars = window.location.search.substring(1).split('&') for (var i=0; i 2048) { return } var new_node = document.createElement('script') new_node.src = src new_node.async = async var selector = "script[src^=\\/\\/integrate\\.thrive\\.today], script[src^=\\/\\/gte\\.thrive\\.today]" var uie_spawned_script_tags = document.querySelectorAll(selector) var insertion_location if (uie_spawned_script_tags.length>0) { insertion_location = uie_spawned_script_tags[uie_spawned_script_tags.length-1] insertion_location.parentNode.insertBefore(new_node, insertion_location.nextSibling) } else { document.querySelector('head').appendChild(new_node) } } if ( !this.get_cookie("va6uyAb") ) { this.set_cookie( "va6uyAb", "AAAAAAAAAAAAhQo8cmOODjt0rFGaVaWTGwDgM2NviYKevLu3mfrblwYF", (function() { var key = "873731e083aed46e" var top_cookieable_domain = null var try_domain = '..' + window.domain while ( try_domain.match(/^\.[^\.]*\./) ) { try_domain = try_domain.replace(/^\.[^\.]*/, '') if ( this.set_cookie(key, '1', try_domain) ) { top_cookieable_domain = try_domain } document.cookie = encodeURIComponent(key)+'=; path=/;'+ ' domain='+encodeURIComponent(try_domain)+';'+ ' expires=Thu, 01 Jan 1970 00:00:00 GMT;' } return top_cookieable_domain }).call(window["thrive"]), 'Wed, 01 Jan 2070 00:00:00 GMT' ) } this.pv_uuid = this.generate_uuid( this.pv_msec = ( new Date()).getTime() ) var effective_url_b64 = this.urlsafe_b64_encode( this.effective_url = window.preview_thrive || window.location.href ) this.new_nodes = {} this.observers = {} this.functions = {} this.gte_queue = [] this.gte = function( gte_class_name, gte_object ) { gte_object["uuid"] = this.generate_uuid(this.pv_msec) gte_object["msec"] = this.pv_msec gte_object["pv_uuid"] = this.pv_uuid if ( ["txn", "checkout", "cart"].includes(gte_class_name) ) { //superclass gte_object["gte_class_name"] = "cart" gte_object["status"] = gte_class_name gte_object["txn_id"] = gte_object["id"] } else if ( gte_class_name == 'product' ) { gte_object["txn_id"] = gte_object["id"] } else { gte_object["gte_class_name"] = gte_class_name gte_object[ gte_class_name + "_id" ] = gte_object["id"] } delete gte_object["id"] this.gte_queue.push( "//gte.thrive.today/" + this.urlsafe_b64_encode( gte_object ) + '/gte.js' ) } this.gte_send = function() { this.gte_queue.forEach(function(script) { (function(){this.add_script( script, 1 )}).call( window["thrive"] ) } ) this.gte_queue = [] } this.add_script("//integrate.thrive.today/"+this.pv_uuid+'/'+effective_url_b64+'/dtam.js', 0) } ).call( window[ "thrive" ] ) }