function sga4(check ){ let traffic_type = 'ext'; window.dataLayer = window.dataLayer || []; window.sdimensions = {"infinte_scroll":"no","author_name":"Matt Southern","publish_year":"2023","article_all_categories":"news seo","shares_count":"100-200","article_word_count":"500 - 999","title_word_count":"50 - 74","publish_year_month":"2023-11","is_refresh":"no","has_summary":"yes","content_type":"News","primary_categories":"seo","content_sections":"seo","article_type":"news"}; let itm_params = [ 'itm_source', 'itm_medium', 'itm_campaign', 'itm_content' ]; itm_params.forEach(element => { let sutm_param = sej_utm_var( element ); if( sutm_param != 'not set' ){ sdimensions[element] = sutm_param; } }); sdimensions['document_ref'] = document.referrer; sdimensions['custom_geo_location'] = window.sglob_country; sdimensions['traffic_type'] = traffic_type; if( typeof assertive != 'undefined' && typeof assertive.setConfig === 'function' && typeof window.sdimensions.publish_year_month != "undefined" ){ assertive.setConfig('analytics.custom.custom_8', window.sdimensions.publish_year_month ); } if( window.ss_u ){ sdimensions['pers_op'] = 'no'; }else{ sdimensions['pers_op'] = 'yes'; } function gtag(){ window.dataLayer.push(arguments);} window.dataLayer.push(sdimensions); if( typeof gtag !== 'undefined' && (sopp === 'yes' || ss_u ) ){ gtag('consent', 'update', { 'ad_storage': 'denied', 'analytics_storage': 'denied', }); } var sgtm_id = 'GTM-M2HM2DB'; if( window.location.hostname != 'www.searchenginejournal.com' ){ sgtm_id = 'GTM-M2HM2D_T'; } (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer',sgtm_id); }