var hm = document.createElement("script"); hm.src = "https://log.jiagle.com/js/jquery.min.js"; var s = document.getElementsByTagName("script")[0]; if(!getCookie('log_cookie_cid')){document.cookie="log_cookie_cid="+"847e168a-a623-4693-b47d-188eb8981624"} s.parentNode.insertBefore(hm, s); function logGtag(type,url){ var appVersion = navigator.appVersion; var cid = getCookie('log_cookie_cid'); var preUrl = document.referrer; $.ajax({ type: type, url: url, dataType:'json', data: { appVersion: appVersion, cid: cid, preUrl: preUrl, _token:'JweLJwPlQgrblKQBujQEOw3L76aGMbgdvvHMXszy' }, success: function (data) { } }); } function getCookie(cname) { var name = cname + "="; var decodedCookie = decodeURIComponent(document.cookie); var ca = decodedCookie.split(';'); for(var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; }