if (document.location.protocol != 'file:') { } /* customTrackingCode below*/ window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } const tagId = 'G-N8PJG62YQL' gtag('js', new Date()); gtag('config', tagId, { 'name': 'clientGATracker' }); function ga(_, eventData) { const params = { send_to: tagId } const hitType = eventData.hitType if (hitType === 'pageview') { params.page_location = document.location.href gtag('event', 'page_view', params) return } params.event_category = eventData.eventCategory params.event_label = eventData.eventLabel params.value = eventData.eventValue gtag('event', eventData.eventAction, params) }
Loading ePaper