@firebase/analytics 0.10.0 → 0.10.1-20240131233318

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
  /**
2
- * Firebase Analytics
2
+ * The Firebase Analytics Web SDK.
3
+ * This SDK does not work in a Node.js environment.
3
4
  *
4
5
  * @packageDocumentation
5
6
  */
@@ -52,6 +53,10 @@ export declare interface AnalyticsSettings {
52
53
  export declare interface ConsentSettings {
53
54
  /** Enables storage, such as cookies, related to advertising */
54
55
  ad_storage?: ConsentStatusString;
56
+ /** Sets consent for sending user data to Google for advertising purposes. */
57
+ ad_user_data?: ConsentStatusString;
58
+ /** Sets consent for personalized advertising. */
59
+ ad_personalization?: ConsentStatusString;
55
60
  /** Enables storage, such as cookies, related to analytics (for example, visit duration) */
56
61
  analytics_storage?: ConsentStatusString;
57
62
  /**
@@ -194,17 +199,17 @@ export declare interface GtagConfigParams {
194
199
  * Whether or not a page view should be sent.
195
200
  * If set to true (default), a page view is automatically sent upon initialization
196
201
  * of analytics.
197
- * See {@link https://developers.google.com/analytics/devguides/collection/ga4/page-view | Page views }
202
+ * See {@link https://developers.google.com/analytics/devguides/collection/ga4/views | Page views }
198
203
  */
199
204
  'send_page_view'?: boolean;
200
205
  /**
201
206
  * The title of the page.
202
- * See {@link https://developers.google.com/analytics/devguides/collection/ga4/page-view | Page views }
207
+ * See {@link https://developers.google.com/analytics/devguides/collection/ga4/views | Page views }
203
208
  */
204
209
  'page_title'?: string;
205
210
  /**
206
211
  * The URL of the page.
207
- * See {@link https://developers.google.com/analytics/devguides/collection/ga4/page-view | Page views }
212
+ * See {@link https://developers.google.com/analytics/devguides/collection/ga4/views | Page views }
208
213
  */
209
214
  'page_location'?: string;
210
215
  /**
@@ -443,7 +448,7 @@ export declare function logEvent(analyticsInstance: Analytics, eventName: 'login
443
448
  * app instance on this device.
444
449
  * @public
445
450
  * See
446
- * {@link https://developers.google.com/analytics/devguides/collection/ga4/page-view
451
+ * {@link https://developers.google.com/analytics/devguides/collection/ga4/views
447
452
  * | Page views}.
448
453
  */
449
454
  export declare function logEvent(analyticsInstance: Analytics, eventName: 'page_view', eventParams?: {
@@ -1,5 +1,6 @@
1
1
  /**
2
- * Firebase Analytics
2
+ * The Firebase Analytics Web SDK.
3
+ * This SDK does not work in a Node.js environment.
3
4
  *
4
5
  * @packageDocumentation
5
6
  */
@@ -52,6 +53,10 @@ export declare interface AnalyticsSettings {
52
53
  export declare interface ConsentSettings {
53
54
  /** Enables storage, such as cookies, related to advertising */
54
55
  ad_storage?: ConsentStatusString;
56
+ /** Sets consent for sending user data to Google for advertising purposes. */
57
+ ad_user_data?: ConsentStatusString;
58
+ /** Sets consent for personalized advertising. */
59
+ ad_personalization?: ConsentStatusString;
55
60
  /** Enables storage, such as cookies, related to analytics (for example, visit duration) */
56
61
  analytics_storage?: ConsentStatusString;
57
62
  /**
@@ -194,17 +199,17 @@ export declare interface GtagConfigParams {
194
199
  * Whether or not a page view should be sent.
195
200
  * If set to true (default), a page view is automatically sent upon initialization
196
201
  * of analytics.
197
- * See {@link https://developers.google.com/analytics/devguides/collection/ga4/page-view | Page views }
202
+ * See {@link https://developers.google.com/analytics/devguides/collection/ga4/views | Page views }
198
203
  */
199
204
  'send_page_view'?: boolean;
200
205
  /**
201
206
  * The title of the page.
202
- * See {@link https://developers.google.com/analytics/devguides/collection/ga4/page-view | Page views }
207
+ * See {@link https://developers.google.com/analytics/devguides/collection/ga4/views | Page views }
203
208
  */
204
209
  'page_title'?: string;
205
210
  /**
206
211
  * The URL of the page.
207
- * See {@link https://developers.google.com/analytics/devguides/collection/ga4/page-view | Page views }
212
+ * See {@link https://developers.google.com/analytics/devguides/collection/ga4/views | Page views }
208
213
  */
209
214
  'page_location'?: string;
210
215
  /**
@@ -443,7 +448,7 @@ export declare function logEvent(analyticsInstance: Analytics, eventName: 'login
443
448
  * app instance on this device.
444
449
  * @public
445
450
  * See
446
- * {@link https://developers.google.com/analytics/devguides/collection/ga4/page-view
451
+ * {@link https://developers.google.com/analytics/devguides/collection/ga4/views
447
452
  * | Page views}.
448
453
  */
449
454
  export declare function logEvent(analyticsInstance: Analytics, eventName: 'page_view', eventParams?: {
@@ -1415,10 +1415,11 @@ function setConsent(consentSettings) {
1415
1415
  }
1416
1416
 
1417
1417
  var name = "@firebase/analytics";
1418
- var version = "0.10.0";
1418
+ var version = "0.10.1-20240131233318";
1419
1419
 
1420
1420
  /**
1421
- * Firebase Analytics
1421
+ * The Firebase Analytics Web SDK.
1422
+ * This SDK does not work in a Node.js environment.
1422
1423
  *
1423
1424
  * @packageDocumentation
1424
1425
  */