Google Analytics browser plugin
Delivers browser events to a Google Analytics GTAG.
Installation
Once the @seeka-labs
private registry is configured, the below command can be ran to install the plugin.
NPM
npm install --save @seeka-labs/converge-plugin-google-analytics-4@latest
Yarn classic (v1)
yarn add @seeka-labs/converge-plugin-google-analytics-4@latest
Configuration
Add the plugin to your Converge
configuration:
import { GoogleAnalytics4ConvergeSdkPlugin } from "@seeka-labs/converge-plugin-google-analytics-4";
const converge = new ConvergeSdk({
...
plugins: [
...
new GoogleAnalytics4ConvergeSdkPlugin({ measurementId: "(measurement ID)" })
],
});