@global-savings-group/extension-google-analytics
v1.0.1
Published
Extension library for Google Analytics 4
Downloads
176
Readme
Extension library for Google Analytics
Usage
import { GoogleAnalytics } from "@global-savings-group/extension-google-analytics"
import { localStorageService } from "../services/storage";
const googleAnalytics = new GoogleAnalytics({
apiSecret: '{API_SECRET}',
measurementId: '{MEASUREMENT_ID}',
storage: localStorageService,
});
googleAnalytics.sendEvent('view_notification', { retailer_name: 'Samsung' });