react-ga4-forked
Advanced tools
Comparing version 1.5.2 to 1.5.3
@@ -103,3 +103,3 @@ "use strict"; | ||
}); | ||
_defineProperty(this, "_loadGA", function (GA_MEASUREMENT_ID, nonce) { | ||
_defineProperty(this, "_loadGA", function (GA_MEASUREMENT_ID, nonce, scriptSrc) { | ||
if (typeof window === 'undefined' || typeof document === 'undefined') { | ||
@@ -106,0 +106,0 @@ return; |
{ | ||
"name": "react-ga4-forked", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "React Google Analytics 4 - forked", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -81,3 +81,3 @@ import gtag from './gtag'; | ||
_loadGA = (GA_MEASUREMENT_ID, nonce) => { | ||
_loadGA = (GA_MEASUREMENT_ID, nonce, scriptSrc) => { | ||
if (typeof window === 'undefined' || typeof document === 'undefined') { | ||
@@ -84,0 +84,0 @@ return; |
@@ -47,3 +47,3 @@ /** | ||
gtag(...args: any[]): void; | ||
_loadGA: (GA_MEASUREMENT_ID: any, nonce: any) => void; | ||
_loadGA: (GA_MEASUREMENT_ID: any, nonce: any, scriptSrc: any) => void; | ||
_toGtagOptions: (gaOptions: any) => {}; | ||
@@ -50,0 +50,0 @@ /** |
120673