Exclude Login Traffic from Google Analytics using Google Tag Manager without putting Code on the Website
Recently I am trying to exclude login traffic from Google Analytic using Google Tag Manager in WordPress/Woocommerce. Once I started looking to tracking solution, How that will be happening on the WordPress/Woocommerce, I found there was couple of methods to already written on the internet and also a couple of WordPress/Woocommerce plugin that’s allow two ways to exclude login traffic from Google Analytic. Either I can use data layer on directly on the WordPress/WooCommerce or Use Plugin on WordPress to Exclude Login Traffic in Google Analytic.
Step 1. First Install Google Tag Manager on Your website to Exclude Login Traffic from Google Analytic using Google Tag Manager without putting a single a code on the website
<script>(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’,’GTM-XXXX’);</script>
<!– End Google Tag Manager –>
<noscript><iframe src=”https://www.googletagmanager.com/ns.html?id=GTM-XXXX”
height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<!– End Google Tag Manager (noscript) –>
Note: Make you will replace GTM Tracking Code with your GTM ID XXXXX
Step 2. Written a javascript and DOM to make verify when admin Login to exclude traffic from Google Analytic using Google Tag Manager.
Step 3. Create an Exception trigger in Google Tag Manager to make condition to exclude traffic using Google Tag Manager
Step 4. Now it’s time to verify exception trigger whether it’s working or not using Google Tag Manager preview mode to Exclude Login Traffic from Google Analytics using Google Tag Manager
Warning:if you do n’t know about javascript or do n’t have developing knowledge then do n’t try to Exclude Login Traffic from Google Analytics using Google Tag Manager without putting Code on the Websitethat can broke your site, Cart and other functionality
Disclaimer: Google tag manager belongs to Google property
For Contact: mappchero@gmail.com
No Fields Found.