1class GoogleAnalytics { 2 static setTag() { 3 window.dataLayer = window.dataLayer || []; 4 dataLayer.push(arguments); 5 } 6 7 static startTracking() { 8 if (GOOGLE_ANALYTICS.tag_id) { 9 this.setTag('js', new Date()); 10 11 this.setTag('consent', 'default', { 12 'ad_storage': 'denied', 13 'ad_user_data': 'denied', 14 'ad_personalization': 'denied', 15 'analytics_storage': 'granted' 16 }); 17 18 this.setTag('config', GOOGLE_ANALYTICS.tag_id, { 19 'anonymize_ip': true 20 }); 21 } 22 } 23 24 static isReady() { 25 return !!GOOGLE_ANALYTICS.tag_id; 26 } 27}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.