File tree Expand file tree Collapse file tree
projects/ngx-google-analytics/src/lib/interfaces Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,16 +4,17 @@ import {IGoogleAnalyticsCommand} from './i-google-analytics-command';
44 * Standardize a key-value object to configure GA installation.
55 */
66export interface IGoogleAnalyticsSettings {
7- /** It's mandatory to provide a tracking code folks... */
7+ /** GA4 Tag Id ("G-XXXXXX") */
88 ga4TagId : string ;
99 /**
1010 * You can inject custom initialization commands like UserId or other e-commerce features.
11- * If set, it will run any GA Commands in sequence after setup GA environment.
11+ * If set, it will run any GA Commands in sequence after setting up GA environment.
1212 */
1313 initCommands ?: Array < IGoogleAnalyticsCommand > ;
1414 /**
15- * If Google changes the uri and I die, you can survive!
16- * When set, it will change the default js script URI to the provided one.
15+ * Instead of the default "https://www.googletagmanager.com/gtag/js" script, you can also use tag manager script:
16+ * "https://www.googletagmanager.com/gtm.js". If you use "gtm.js", remember to also use tag manager ID:
17+ * "GTM-XXXXXX" instead of gtag id "G-XXXXXX".
1718 */
1819 uri ?: string ;
1920 /** If true, trace GA tracking errors in production mode */
You can’t perform that action at this time.
0 commit comments