diff --git a/ios.html b/ios.html index f2a6eff..e870e67 100644 --- a/ios.html +++ b/ios.html @@ -83,44 +83,96 @@ <script src='https://www.footseen.com/layer-v3.1.0/layer/layer.js'></script> <script type="text/javascript"> - var data = OpenInstall.parseUrlParams(); -new OpenInstall({ - appKey: "dzxj4c", - preferWakeup: true, - mask: function () { - return '<div id="openinstall_shadow" class="shadow-img"><img src="images/share-img.png" alt=""></div>' - }, - onready: function () { - var m = this; - m.schemeWakeup(); - $(".iosDown").on("click", function () { +// var data = OpenInstall.parseUrlParams(); +//new OpenInstall({ +// appKey: "dzxj4c", +// preferWakeup: true, +// mask: function () { +// return '<div id="openinstall_shadow" class="shadow-img"><img src="images/share-img.png" alt=""></div>' +// }, +// onready: function () { +// var m = this; +// m.schemeWakeup(); +// $(".iosDown").on("click", function () { +// +// ga('send', 'event', { +// eventCategory: 'ios', +// eventAction: 'click', +// eventLabel: 'ios' +// }); +// ga('clientTracker.send', 'event', { +// eventCategory: 'ios', +// eventAction: 'click', +// eventLabel: 'ios' +// }); +// gtag('event', 'conversion', { +// 'send_to': 'AW-678006312/kqI0CJCE-7gBEKicpsMC', +// 'event_callback': gtag_report_conversion('apk',m) +// }); +// return false; +// }) +// } +//}, data); +var data = url_get_params(); +console.log(data); +$(".iosDown").on("click", function () { - ga('send', 'event', { - eventCategory: 'ios', - eventAction: 'click', - eventLabel: 'ios' - }); - ga('clientTracker.send', 'event', { - eventCategory: 'ios', - eventAction: 'click', - eventLabel: 'ios' - }); - gtag('event', 'conversion', { - 'send_to': 'AW-678006312/kqI0CJCE-7gBEKicpsMC', - 'event_callback': gtag_report_conversion('apk',m) - }); - return false; - }) - } -}, data); -function gtag_report_conversion(url,m) { - + ga('send', 'event', { + eventCategory: 'ios', + eventAction: 'click', + eventLabel: 'ios' + }); + ga('clientTracker.send', 'event', { + eventCategory: 'ios', + eventAction: 'click', + eventLabel: 'ios' + }); + gtag('event', 'conversion', { + 'send_to': 'AW-678006312/kqI0CJCE-7gBEKicpsMC', + 'event_callback': gtag_report_conversion() + }); + }) +function gtag_report_conversion() { + copyText(data.icid) setTimeout(function(){ - m.wakeupOrInstall(); + window.location.href = 'https://apps.apple.com/us/app/footseen-random-video-chat-app/id1491129400'; },500) } $('.topUp').on('click',function(){ window.location.href = 'https://www.footseen.com/footseen/phonepay/applepay.html?lang='+sessionStorage.lang+'&gofrom=web'+'&gofrom=web&cidStr=h5_footseengw'; }) + + function copyText(text) { + var textarea = document.createElement("textarea"); + var currentFocus = document.activeElement; + document.body.appendChild(textarea); + textarea.value = text; + textarea.focus(); + if (textarea.setSelectionRange) + textarea.setSelectionRange(0, textarea.value.length); + else + textarea.select(); + try { + var flag = document.execCommand("copy"); + } catch(eo){ + var flag = false; + } + document.body.removeChild(textarea); + currentFocus.focus(); + return flag; + } + + function url_get_params() { + var url = location.href; + var theRequest = new Object(); + if(url.indexOf("?") != -1) { + var str = url.substr(url.indexOf("?") + 1); + strs = str.split("&"); + for(var i = 0; i < strs.length; i++) { + theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]); + } + } + return theRequest; + } </script> </html> diff --git a/text3.html b/text3.html index 1d500a3..74b00d4 100644 --- a/text3.html +++ b/text3.html @@ -202,5 +202,7 @@ currentFocus.focus(); return flag; } + + </script> </html>