How to get Business Leads Reported in Google Analytics 4

Through our IP API you can get your business leads reported in Google Analytics 4, easily and quickly!

We'll give a few options depending your needs.

Choose your option and add the code to your site and you're done. Somewhere in the footer for example. Or add it as Custom HTML in Google Tag Manager.

Super easy: These codes work for both the Gtag.js and GTM Google Analytics installs.

This guide is for Google Analytics 4, for our guide for the previous version of Google Analytics click here.

Lots of traffic? Get the Pro Package so your domain won't get blocked!

Send your Business Leads to Google Analytics 4:

Here we filter on Business and Education visitors. Residential (and hosting) visitors will not get send to Google Analytics 4. This makes viewing just the B2B Leads even easier in the Google Analytics 4!

This requires adding a few simple 'custom dimensions' within Google Analytics 4.

After this you can now filter/segment on these type of Users and display these Custom Dimensions in Explore reports. In Google Looker Studio you can select these Custom Dimensions directly and add them easily to tables and charts.

<script>
//If the following doesn't work anymore your website is probably blocked because of usage, get the Pro Package at extreme-ip-lookup.com
 function GA4GetIPB2B1(json) {
   if (json) {
   	EIPL=json;
   }
   if (EIPL.ipType === 'Business' || EIPL.ipType === 'Education') {
   	if (typeof gaGlobal  === 'object' && gaGlobal.vid) {
		if (!EIPL.businessWebsite) {
			EIPL.businessWebsite='(not set)';
		}
		window.dataLayer = window.dataLayer || [];
                window.eiplGIDStorageTodo = window.eiplGIDStorageTodo || {};
                window.eiplGIDStorageDone = window.eiplGIDStorageDone || {};
                eiplgtag = function (){dataLayer.push(arguments);}
                var regex = /_ga_([^=]+)/gi, result = [];
                while ( (result = regex.exec(document.cookie)) ) {
                	eiplGIDStorageTodo['G-'+result[1]]=1;
                }
                for (var GID in eiplGIDStorageTodo) {
                	if (!eiplGIDStorageDone[GID]) {
				eiplgtag('js', new Date());
				eiplgtag('config', GID, {
				  'send_page_view': false
				});
				var eiplup={ 'eipl_org_type': EIPL.ipType, 'eipl_org': EIPL.org, 'eipl_org_website': EIPL.businessWebsite };
				eiplgtag('event', 'eipl_set_service_provider', { 'send_to': GID, 'user_properties': eiplup });
				eiplGIDStorageDone[GID]=1;
			}
		}
	}
	else {
		setTimeout(function() {GA4GetIPB2B1();}, 200);
	}
   }
 }
</script>
<script src="//extreme-ip-lookup.com/json/?callback=GA4GetIPB2B1&key=demo" async defer></script>
Replace key=demo with your API key: Get your API key.

Send all types of visitors to Google Analytics 4:

Here we send all visitors to GA4 and you'll be able to seperate/filter/segment your visitors by Business, Education and Residential within Google Analytics 4.

This requires adding a few simple 'custom dimensions' within Google Analytics 4.

After this you can now filter/segment on these type of Users and display these Custom Dimensions in Explore reports. In Google Looker Studio you can select these Custom Dimensions directly and add them easily to tables and charts.

<script>
//If the following doesn't work anymore your website is probably blocked because of usage, get the Pro Package at extreme-ip-lookup.com
 function GA4GetIPB2B2(json) {
   if (json) {
   	EIPL=json;
   }
   	if (typeof gaGlobal  === 'object' && gaGlobal.vid) {
		if (!EIPL.businessWebsite) {
			EIPL.businessWebsite='(not set)';
		}
		window.dataLayer = window.dataLayer || [];
                window.eiplGIDStorageTodo = window.eiplGIDStorageTodo || {};
                window.eiplGIDStorageDone = window.eiplGIDStorageDone || {};
                eiplgtag = function (){dataLayer.push(arguments);}
                var regex = /_ga_([^=]+)/gi, result = [];
                while ( (result = regex.exec(document.cookie)) ) {
                	eiplGIDStorageTodo['G-'+result[1]]=1;
                }
                for (var GID in eiplGIDStorageTodo) {
                	if (!eiplGIDStorageDone[GID]) {
				eiplgtag('js', new Date());
				eiplgtag('config', GID, {
				  'send_page_view': false
				});
				var eiplup={ 'eipl_org_type': EIPL.ipType, 'eipl_org': EIPL.org, 'eipl_org_website': EIPL.businessWebsite };
				eiplgtag('event', 'eipl_set_service_provider', { 'send_to': GID, 'user_properties': eiplup });
				eiplGIDStorageDone[GID]=1;
			}
		}
	}
	else {
		setTimeout(function() {GA4GetIPB2B2();}, 200);
	}
 }
</script>
<script src="//extreme-ip-lookup.com/json/?callback=GA4GetIPB2B2&key=demo" async defer></script>
Replace key=demo with your API key: Get your API key.
Lots of traffic? Get the Pro Package so your domain won't get blocked!