@@ -60,11 +60,11 @@ declare module '@firebase/component' {
60
60
}
61
61
62
62
/**
63
- * Returns a Firebase Analytics instance for the given app.
63
+ * Returns an { @link Analytics} instance for the given app.
64
64
*
65
65
* @public
66
66
*
67
- * @param app - The FirebaseApp to use.
67
+ * @param app - The { @link @firebase/app# FirebaseApp} to use.
68
68
*/
69
69
export function getAnalytics ( app : FirebaseApp = getApp ( ) ) : Analytics {
70
70
app = getModularInstance ( app ) ;
@@ -82,11 +82,11 @@ export function getAnalytics(app: FirebaseApp = getApp()): Analytics {
82
82
}
83
83
84
84
/**
85
- * Returns a Firebase Analytics instance for the given app.
85
+ * Returns an { @link Analytics} instance for the given app.
86
86
*
87
87
* @public
88
88
*
89
- * @param app - The FirebaseApp to use.
89
+ * @param app - The { @link @firebase/app# FirebaseApp} to use.
90
90
*/
91
91
export function initializeAnalytics (
92
92
app : FirebaseApp ,
@@ -115,7 +115,7 @@ export function initializeAnalytics(
115
115
* 1. Check if it's not a browser extension environment.
116
116
* 2. Check if cookies are enabled in current browser.
117
117
* 3. Check if IndexedDB is supported by the browser environment.
118
- * 4. Check if the current browser context is valid for using IndexedDB.open().
118
+ * 4. Check if the current browser context is valid for using ` IndexedDB.open()` .
119
119
*
120
120
* @public
121
121
*
@@ -140,11 +140,11 @@ export async function isSupported(): Promise<boolean> {
140
140
}
141
141
142
142
/**
143
- * Use gtag ' config' command to set ' screen_name' .
143
+ * Use gtag ` config` command to set ` screen_name` .
144
144
*
145
145
* @public
146
146
*
147
- * @param analyticsInstance - Firebase Analytics instance.
147
+ * @param analyticsInstance - The { @link Analytics} instance.
148
148
* @param screenName - Screen name to set.
149
149
*/
150
150
export function setCurrentScreen (
@@ -162,11 +162,11 @@ export function setCurrentScreen(
162
162
}
163
163
164
164
/**
165
- * Use gtag ' config' command to set ' user_id' .
165
+ * Use gtag ` config` command to set ` user_id` .
166
166
*
167
167
* @public
168
168
*
169
- * @param analyticsInstance - Firebase Analytics instance.
169
+ * @param analyticsInstance - The { @link Analytics} instance.
170
170
* @param id - User ID to set.
171
171
*/
172
172
export function setUserId (
@@ -184,7 +184,7 @@ export function setUserId(
184
184
}
185
185
186
186
/**
187
- * Use gtag ' config' command to set all params specified.
187
+ * Use gtag ` config` command to set all params specified.
188
188
*
189
189
* @public
190
190
*/
@@ -203,12 +203,12 @@ export function setUserProperties(
203
203
}
204
204
205
205
/**
206
- * Sets whether analytics collection is enabled for this app on this device.
207
- * window['ga-disable-analyticsId'] = true;
206
+ * Sets whether Google Analytics collection is enabled for this app on this device.
207
+ * Sets global ` window['ga-disable-analyticsId'] = true;`
208
208
*
209
209
* @public
210
210
*
211
- * @param analyticsInstance - Firebase Analytics instance.
211
+ * @param analyticsInstance - The { @link Analytics} instance.
212
212
* @param enabled - If true, enables collection, if false, disables it.
213
213
*/
214
214
export function setAnalyticsCollectionEnabled (
@@ -222,7 +222,7 @@ export function setAnalyticsCollectionEnabled(
222
222
) . catch ( e => logger . error ( e ) ) ;
223
223
}
224
224
/**
225
- * Sends analytics event with given `eventParams`. This method
225
+ * Sends a Google Analytics event with given `eventParams`. This method
226
226
* automatically associates this logged event with this Firebase web
227
227
* app instance on this device.
228
228
* @public
@@ -245,7 +245,7 @@ export function logEvent(
245
245
) : void ;
246
246
247
247
/**
248
- * Sends analytics event with given `eventParams`. This method
248
+ * Sends a Google Analytics event with given `eventParams`. This method
249
249
* automatically associates this logged event with this Firebase web
250
250
* app instance on this device.
251
251
* @public
@@ -268,7 +268,7 @@ export function logEvent(
268
268
) : void ;
269
269
270
270
/**
271
- * Sends analytics event with given `eventParams`. This method
271
+ * Sends a Google Analytics event with given `eventParams`. This method
272
272
* automatically associates this logged event with this Firebase web
273
273
* app instance on this device.
274
274
* @public
@@ -289,7 +289,7 @@ export function logEvent(
289
289
) : void ;
290
290
291
291
/**
292
- * Sends analytics event with given `eventParams`. This method
292
+ * Sends a Google Analytics event with given `eventParams`. This method
293
293
* automatically associates this logged event with this Firebase web
294
294
* app instance on this device.
295
295
* @public
@@ -311,7 +311,7 @@ export function logEvent(
311
311
) : void ;
312
312
313
313
/**
314
- * Sends analytics event with given `eventParams`. This method
314
+ * Sends a Google Analytics event with given `eventParams`. This method
315
315
* automatically associates this logged event with this Firebase web
316
316
* app instance on this device.
317
317
* @public
@@ -335,7 +335,7 @@ export function logEvent(
335
335
) : void ;
336
336
337
337
/**
338
- * Sends analytics event with given `eventParams`. This method
338
+ * Sends a Google Analytics event with given `eventParams`. This method
339
339
* automatically associates this logged event with this Firebase web
340
340
* app instance on this device.
341
341
* @public
@@ -355,7 +355,7 @@ export function logEvent(
355
355
) : void ;
356
356
357
357
/**
358
- * Sends analytics event with given `eventParams`. This method
358
+ * Sends a Google Analytics event with given `eventParams`. This method
359
359
* automatically associates this logged event with this Firebase web
360
360
* app instance on this device.
361
361
* @public
@@ -375,7 +375,7 @@ export function logEvent(
375
375
) : void ;
376
376
377
377
/**
378
- * Sends analytics event with given `eventParams`. This method
378
+ * Sends a Google Analytics event with given `eventParams`. This method
379
379
* automatically associates this logged event with this Firebase web
380
380
* app instance on this device.
381
381
* @public
@@ -394,7 +394,7 @@ export function logEvent(
394
394
) : void ;
395
395
396
396
/**
397
- * Sends analytics event with given `eventParams`. This method
397
+ * Sends a Google Analytics event with given `eventParams`. This method
398
398
* automatically associates this logged event with this Firebase web
399
399
* app instance on this device.
400
400
* @public
@@ -415,7 +415,7 @@ export function logEvent(
415
415
) : void ;
416
416
417
417
/**
418
- * Sends analytics event with given `eventParams`. This method
418
+ * Sends a Google Analytics event with given `eventParams`. This method
419
419
* automatically associates this logged event with this Firebase web
420
420
* app instance on this device.
421
421
* @public
@@ -441,7 +441,7 @@ export function logEvent(
441
441
) : void ;
442
442
443
443
/**
444
- * Sends analytics event with given `eventParams`. This method
444
+ * Sends a Google Analytics event with given `eventParams`. This method
445
445
* automatically associates this logged event with this Firebase web
446
446
* app instance on this device.
447
447
* @public
@@ -460,7 +460,7 @@ export function logEvent(
460
460
) : void ;
461
461
462
462
/**
463
- * Sends analytics event with given `eventParams`. This method
463
+ * Sends a Google Analytics event with given `eventParams`. This method
464
464
* automatically associates this logged event with this Firebase web
465
465
* app instance on this device.
466
466
* @public
@@ -479,7 +479,7 @@ export function logEvent(
479
479
) : void ;
480
480
481
481
/**
482
- * Sends analytics event with given `eventParams`. This method
482
+ * Sends a Google Analytics event with given `eventParams`. This method
483
483
* automatically associates this logged event with this Firebase web
484
484
* app instance on this device.
485
485
* @public
@@ -499,7 +499,7 @@ export function logEvent(
499
499
) : void ;
500
500
501
501
/**
502
- * Sends analytics event with given `eventParams`. This method
502
+ * Sends a Google Analytics event with given `eventParams`. This method
503
503
* automatically associates this logged event with this Firebase web
504
504
* app instance on this device.
505
505
* @public
@@ -520,7 +520,7 @@ export function logEvent(
520
520
) : void ;
521
521
522
522
/**
523
- * Sends analytics event with given `eventParams`. This method
523
+ * Sends a Google Analytics event with given `eventParams`. This method
524
524
* automatically associates this logged event with this Firebase web
525
525
* app instance on this device.
526
526
* @public
@@ -541,7 +541,7 @@ export function logEvent(
541
541
) : void ;
542
542
543
543
/**
544
- * Sends analytics event with given `eventParams`. This method
544
+ * Sends a Google Analytics event with given `eventParams`. This method
545
545
* automatically associates this logged event with this Firebase web
546
546
* app instance on this device.
547
547
* @public
@@ -561,7 +561,7 @@ export function logEvent(
561
561
) : void ;
562
562
563
563
/**
564
- * Sends analytics event with given `eventParams`. This method
564
+ * Sends a Google Analytics event with given `eventParams`. This method
565
565
* automatically associates this logged event with this Firebase web
566
566
* app instance on this device.
567
567
* @public
@@ -582,7 +582,7 @@ export function logEvent(
582
582
) : void ;
583
583
584
584
/**
585
- * Sends analytics event with given `eventParams`. This method
585
+ * Sends a Google Analytics event with given `eventParams`. This method
586
586
* automatically associates this logged event with this Firebase web
587
587
* app instance on this device.
588
588
* @public
@@ -601,7 +601,7 @@ export function logEvent(
601
601
) : void ;
602
602
603
603
/**
604
- * Sends analytics event with given `eventParams`. This method
604
+ * Sends a Google Analytics event with given `eventParams`. This method
605
605
* automatically associates this logged event with this Firebase web
606
606
* app instance on this device.
607
607
* @public
@@ -623,7 +623,7 @@ export function logEvent(
623
623
) : void ;
624
624
625
625
/**
626
- * Sends analytics event with given `eventParams`. This method
626
+ * Sends a Google Analytics event with given `eventParams`. This method
627
627
* automatically associates this logged event with this Firebase web
628
628
* app instance on this device.
629
629
* @public
@@ -644,7 +644,7 @@ export function logEvent(
644
644
) : void ;
645
645
646
646
/**
647
- * Sends analytics event with given `eventParams`. This method
647
+ * Sends a Google Analytics event with given `eventParams`. This method
648
648
* automatically associates this logged event with this Firebase web
649
649
* app instance on this device.
650
650
* @public
@@ -665,7 +665,7 @@ export function logEvent(
665
665
) : void ;
666
666
667
667
/**
668
- * Sends analytics event with given `eventParams`. This method
668
+ * Sends a Google Analytics event with given `eventParams`. This method
669
669
* automatically associates this logged event with this Firebase web
670
670
* app instance on this device.
671
671
* @public
@@ -681,7 +681,7 @@ export function logEvent<T extends string>(
681
681
) : void ;
682
682
683
683
/**
684
- * Sends analytics event with given `eventParams`. This method
684
+ * Sends a Google Analytics event with given `eventParams`. This method
685
685
* automatically associates this logged event with this Firebase web
686
686
* app instance on this device.
687
687
* List of official event parameters can be found in the gtag.js
0 commit comments