File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments