Skip to content

Commit 7788dcc

Browse files
author
ghost
committed
log
1 parent 6486f02 commit 7788dcc

1 file changed

Lines changed: 8 additions & 26 deletions

File tree

thank-you.html

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -87,32 +87,14 @@
8787

8888

8989
<script>
90-
(function () {
91-
92-
try {
93-
94-
if (!window.mousaCookieConsent || !window.mousaCookieConsent.get) return;
95-
96-
const consent = window.mousaCookieConsent.get();
97-
if (!consent || consent.accepted !== true) return;
98-
99-
setTimeout(function () {
100-
if (typeof window.gtag !== 'function') return;
101-
102-
window.gtag('event', 'conversion', {
103-
send_to: 'AW-18022556253/REPLACE_WITH_REAL_LABEL'
104-
});
105-
106-
console.log('Google Ads conversion sent');
107-
}, 1000);
108-
109-
} catch {
110-
console.log(e);
111-
}
112-
113-
})();
114-
115-
90+
console.log('mousaCookieConsent:', window.mousaCookieConsent);
91+
console.log('consent value:', window.mousaCookieConsent && window.mousaCookieConsent.get ? window.mousaCookieConsent.get() : null);
92+
try {
93+
console.log('raw localStorage:', localStorage.getItem('mousaConsentV1'));
94+
} catch (e) {
95+
console.log('localStorage unavailable:', e);
96+
}
97+
console.log('gtag type:', typeof window.gtag);
11698
</script>
11799

118100

0 commit comments

Comments
 (0)