Skip to content

nottinghamcollege/ipmeta-ga4-plugin-gtm-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IPMeta Plugin for Google Analytics 4 (GA4)

Google Tag Manager template for the IpMeta plugin.

Requires a valid IpMeta.io API key.

Prerequisites

  1. IpMeta.io API key
  2. Custom dimensions setup for IpMetaServiceProvider, IpMetaNetworkDomain and IpMetaNetworkType. 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:

image

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).

About

Google Tag Manager template for IpMeta GA4 plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages