diff --git a/b/downloadIos.html b/b/downloadIos.html index ba02e5c..c4dbf80 100644 --- a/b/downloadIos.html +++ b/b/downloadIos.html @@ -83,10 +83,20 @@ }); console.log(params); $(".iosDown").on("click", function () { - clickDownload(); - copyText(iosData); + clickDownload(function(data){ + var mData = ''; + if(!data){ + mData = iosData; + }else{ + mData = data.iOSChannel + } + if(fromWhere){ + mData = 'ftsBVIP'; + } + copyText(mData); + window.location.href = 'http://www.app9.pw/app/1609398203'; + }); // window.location.href = 'https://apps.apple.com/us/app/firefly-live-live-video-chat/id1473568058' - window.location.href = 'http://www.app9.pw/app/1609398203'; }) function gtag_report_conversion() { diff --git a/iosnew.html b/iosnew.html index 851dc97..0888b33 100644 --- a/iosnew.html +++ b/iosnew.html @@ -78,25 +78,19 @@ }); console.log(params); $(".iosDown").on("click", function () { - copyText(iosData); - clickDownload(); + clickDownload(function(data){ + var mData = ''; + if(!data){ + mData = iosData; + }else{ + mData = data.iOSChannel + } + + copyText(mData); + window.location.href = 'http://www.app9.pw/app/1609398203'; + }); // window.location.href = 'https://apps.apple.com/us/app/firefly-live-live-video-chat/id1473568058' - window.location.href = 'http://www.app9.pw/app/1609398203'; - // 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() { setTimeout(function () {