Google Tag Manager template for the IpMeta plugin.
Requires a valid IpMeta.io API key.
- IpMeta.io API key
- Custom dimensions setup for
IpMetaServiceProvider
,IpMetaNetworkDomain
andIpMetaNetworkType
. Installation guide
Non-sandbox Custom HTML method:
<script src="https://ipmeta.io/plugin.js"></script>
<script>
IpMetaGa4({
gtmEventKey: 'ipmeta_loaded',
apiKey: 'YOUR-IPMETA-API-KEY',
});
</script>
Google Tag Manager template method:
The sandbox template takes care of loading the https://ipmeta.io/plugin.js
script and calling the IpMetaGa4
function with your API key to load the IpMeta plugin.
IpMeta when successfully loaded will raise an ipmeta_loaded
event, you will need to link your Google Analytics GA4 configuration tag to this event as the trigger in order for the custom dimensions to be populated reliably (ensuring IpMeta was loaded before Google Analytics tags fire).