diff --git a/banknote.html b/banknote.html index d03448c..a6956e9 100644 --- a/banknote.html +++ b/banknote.html @@ -177,6 +177,7 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ== } function generateQRCodes() { + gtag('event', 'generateQR'); clear(); // Where to Download the public key @@ -196,6 +197,7 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ== } function verifyQRCode() { + gtag('event', 'verifyQR'); PCFUtils.debugParseURI(e("qr-verify").value).then(result => { e("qr-verify-result").innerHTML = result; }); diff --git a/cowin.html b/cowin.html index 001f0ae..7103108 100644 --- a/cowin.html +++ b/cowin.html @@ -266,6 +266,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ== } function generateQRCodes() { + gtag('event', 'generateQR'); + // Where to Download the public key const pubKeyLink = e("qr-link").value.trim().replace("http://",""); @@ -376,6 +378,7 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ== } function verifyQRCode() { + gtag('event', 'verifyQR'); const payload = e("qr-verify").value; if (payload.startsWith("CRED:")) { PCFUtils.debugParseURI(e("qr-verify").value).then(result => { diff --git a/debug.html b/debug.html index cf9b9f7..eb65f2c 100644 --- a/debug.html +++ b/debug.html @@ -120,6 +120,8 @@ AF7zi+d862ePRQ9Lwymr7XfwVm0= } function verifyQRCode() { + gtag('event', 'debugQR'); + e("qr-verify-brand").innerHTML = ""; e("qr-verify-result").innerHTML = "Checking"; e('qr-verify-verified').innerHTML = ""; diff --git a/eu.dgc.html b/eu.dgc.html index acc34d9..6863979 100644 --- a/eu.dgc.html +++ b/eu.dgc.html @@ -1016,6 +1016,8 @@ AF7zi+d862ePRQ9Lwymr7XfwVm0= } function generateQRCodes() { + gtag('event', 'generateQR'); + clear(payloads, compressionAlgos); // Where to Download the public key @@ -1070,6 +1072,7 @@ AF7zi+d862ePRQ9Lwymr7XfwVm0= } function verifyQRCode() { + gtag('event', 'verifyQR'); if (e("qr-verify").value.startsWith('CRED:')) { PCFUtils.debugParseURI(e("qr-verify").value).then(result => { e("qr-verify-result").innerHTML = result; diff --git a/eu.dgc.v1.html b/eu.dgc.v1.html index 9bf345d..2cb96a0 100644 --- a/eu.dgc.v1.html +++ b/eu.dgc.v1.html @@ -671,6 +671,8 @@ AF7zi+d862ePRQ9Lwymr7XfwVm0= } function generateQRCodes() { + gtag('event', 'generateQR'); + clear(payloads, compressionAlgos); // Where to Download the public key @@ -1080,6 +1082,8 @@ AF7zi+d862ePRQ9Lwymr7XfwVm0= } function verifyQRCode() { + gtag('event', 'verifyQR'); + if (e("qr-verify").value.startsWith('CRED:')) { PCFUtils.debugParseURI(e("qr-verify").value).then(result => { e("qr-verify-result").innerHTML = result; diff --git a/icao.html b/icao.html index 027e40b..ad7365d 100644 --- a/icao.html +++ b/icao.html @@ -836,6 +836,8 @@ AF7zi+d862ePRQ9Lwymr7XfwVm0= } function generateQRCodes() { + gtag('event', 'generateQR'); + clear(); // Where to Download the public key @@ -969,6 +971,8 @@ AF7zi+d862ePRQ9Lwymr7XfwVm0= } function verifyQRCode() { + gtag('event', 'verifyQR'); + if (e("qr-verify").value.startsWith('CRED:')) { PCFUtils.debugParseURI(e("qr-verify").value).then(result => { e("qr-verify-result").innerHTML = result; diff --git a/index.v-1.html b/index.v-1.html index 1d54765..92c05f8 100644 --- a/index.v-1.html +++ b/index.v-1.html @@ -102,6 +102,8 @@ //e(elemPrefix + "-bytes").innerHTML = "QR Version: " + qr.version + " with size " + qr.modules.size + "x" + qr.modules.size + " bits => " + Math.round((qr.modules.size*qr.modules.size)/8) + " bytes"; } function generateQRCodes() { + gtag('event', 'generateQR'); + generateCode('text-qr1', "qr-code1"); generateCode('text-qr2', "qr-code2"); } diff --git a/index.v0.html b/index.v0.html index 92a1955..4d1845f 100644 --- a/index.v0.html +++ b/index.v0.html @@ -103,6 +103,8 @@ uku7JUXcVpt08DFSceCEX9unCuMcT72rAQlLpdZir876 client.send(); } function generateQRCode() { + gtag('event', 'generateQR'); + var message = addIfExists("data=", 'india-data'); var pubkey = e("qr-link").value.trim().replace("http://",""); diff --git a/index.v1.html b/index.v1.html index e0a53cb..c1cbde5 100644 --- a/index.v1.html +++ b/index.v1.html @@ -112,6 +112,8 @@ uku7JUXcVpt08DFSceCEX9unCuMcT72rAQlLpdZir876 client.send(); } function generateQRCode() { + gtag('event', 'generateQR'); + var message = "date="+e("qr-date").value; message += addIfExists("&vaccinee=", "qr-vaccineeid"); message += addIfExists("&vaccinator=", "qr-vacinatorid"); diff --git a/index.v2.html b/index.v2.html index 7de2d47..fa02922 100644 --- a/index.v2.html +++ b/index.v2.html @@ -192,6 +192,8 @@ uku7JUXcVpt08DFSceCEX9unCuMcT72rAQlLpdZir876 } function generateQRCodes() { + gtag('event', 'generateQR'); + var pubkey = e("qr-link").value.trim().replace("http://",""); var prikey = e('privkey').value; diff --git a/index.v3.html b/index.v3.html index 0ef572c..9dfb674 100644 --- a/index.v3.html +++ b/index.v3.html @@ -213,6 +213,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ== } function generateQRCodes() { + gtag('event', 'generateQR'); + var pubkey = e("qr-link").value.trim().replace("http://",""); var prikey = e('privkey').value; diff --git a/index.v4.html b/index.v4.html index 559563d..8822dc7 100644 --- a/index.v4.html +++ b/index.v4.html @@ -243,6 +243,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ== } function generateQRCodes() { + gtag('event', 'generateQR'); + // Get Keys let pubkey = e("qr-link").value.trim().replace("http://",""); let prikey = e('privkey').value; diff --git a/index.v5.html b/index.v5.html index dfe2698..cfd309d 100644 --- a/index.v5.html +++ b/index.v5.html @@ -206,6 +206,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ== } async function generateQRCodes() { + gtag('event', 'generateQR'); + clear(); // Where to Download the public key @@ -256,6 +258,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ== } function verifyQRCode() { + gtag('event', 'verifyQR'); + PCFUtils.debugParseURI(e("qr-verify").value).then(result => { e("qr-verify-result").innerHTML = result; }); diff --git a/liberty.html b/liberty.html index aabfc32..ebe33e9 100644 --- a/liberty.html +++ b/liberty.html @@ -255,6 +255,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ== } function generateQRCodes() { + gtag('event', 'generateQR'); + // Where to Download the public key const pubKeyLink = e("qr-link").value.trim().replace("http://",""); @@ -314,6 +316,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ== } function verifyQRCode() { + gtag('event', 'verifyQR'); + PCFUtils.debugParseURI(e("qr-verify").value).then(result => { e("qr-verify-result").innerHTML = result; }); diff --git a/opencerta.html b/opencerta.html index a8da26f..5935084 100644 --- a/opencerta.html +++ b/opencerta.html @@ -268,6 +268,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ== } function generateQRCodes() { + gtag('event', 'generateQR'); + // Where to Download the public key const pubKeyLink = e("qr-link").value.trim().replace("http://",""); @@ -291,6 +293,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ== } function verifyQRCode() { + gtag('event', 'verifyQR'); + PCFUtils.debugParseURI(e("qr-verify").value).then(result => { e("qr-verify-result").innerHTML = result; }); diff --git a/us.ma.id.html b/us.ma.id.html index ca6552a..205ae42 100644 --- a/us.ma.id.html +++ b/us.ma.id.html @@ -239,6 +239,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ== } function generateQRCodes() { + gtag('event', 'generateQR'); + clear(); // Where to Download the public key @@ -310,6 +312,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ== } function verifyQRCode() { + gtag('event', 'verifyQR'); + PCFUtils.debugParseURI(e("qr-verify").value).then(result => { e("qr-verify-result").innerHTML = result; }); diff --git a/verify.html b/verify.html index f7de532..97c03b4 100644 --- a/verify.html +++ b/verify.html @@ -122,7 +122,8 @@ return hash.substr(0,10) + ".." + hash.substr(hash.length-10,10) } - function verifyQRCode(data) { + function verifyQRCode(data) { + gtag('event', 'universalverifyQR'); if (!data) data = e("qr-verify").value; diff --git a/vial.html b/vial.html index 699ebcd..5d738b0 100644 --- a/vial.html +++ b/vial.html @@ -177,6 +177,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ== } function generateQRCodes() { + gtag('event', 'generateQR'); + clear(); // Where to Download the public key @@ -202,6 +204,8 @@ DcJqR5clbAYlO9lHmvb4lsPLZHjugQ== } function verifyQRCode() { + gtag('event', 'verifyQR'); + PCFUtils.debugParseURI(e("qr-verify").value).then(result => { e("qr-verify-result").innerHTML = result; });