You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* [Get the app instance id](#get-the-appinstance-id)
22
-
* [Disable Ad Id usage on iOS](#disable-ad-id-usage-on-ios)
23
-
*[Analytics class API](#analytics-class-api)
24
-
* [Properties](#properties)
25
-
* [Methods](#Methods)
26
-
*[License](#License)
27
-
28
32
## Installation
29
33
Install the plugin by running the following command in the root directory of your project.
30
34
@@ -39,7 +43,8 @@ The examples below show you how to use `@nativescript/firebase-analytics` to log
39
43
### Log custom events
40
44
41
45
Analytics also allows developers to log custom events. If you're already familiar with Google Analytics, this method is equivalent to using the event command in [gtag.js](https://developers.google.com/gtagjs/).
42
-
To log a custom event to Analytics, call the `logEvent` method on an instance of the `Analytics` class passing it the name of the custom event as the first argument and the event data object as the second argument.
46
+
47
+
To log a custom event to Analytics, call the `logEvent` method on an instance of the [Analytics](#analytics-class) class passing it the name of the custom event as the first argument and the event data object as the second argument.
43
48
44
49
Please be aware that primitive data types or arrays of primitive data types are logged in your Firebase Analytics console.
45
50
@@ -105,9 +110,9 @@ import { firebase } from '@nativescript/firebase-core';
### Disable Identifier for Advertisers usage with analytics on iOS
109
114
110
-
Apple strictly bans an app from being in the Kids category if the app accesses IDFA iOS symbols.
115
+
Apple strictly bans an app from being in the Kids category if the app accesses Identifier for Advertisers(IDFA) iOS symbols.
111
116
112
117
Additionally, if an app accesses IDFA iOS symbols, it must implement Apple's [App Tracking Transparency](https://developer.apple.com/documentation/apptrackingtransparency)(or `ATT`). However, if an app does not use IDFA and otherwise handles data in an ATT-compatible way, it eliminates this ATT requirement.
During pod install, using that variable installs a new `Analytics With No Ad Ids` pod that the firebase-ios-sdk team created, and allows both the use of Firebase Analytics in Kids Category apps and Firebase Analytics without needing the App Tracking Transparency handling (assuming no other parts of your app handles data in a way that requires ATT)
121
126
122
-
Note that for obvious reasons, configuring Firebase Analytics for use without IDFA is incompatible with AdMob.
127
+
>**Note** that configuring Firebase Analytics for use without IDFA is incompatible with AdMob.
128
+
129
+
### Demo app
130
+
131
+
You can find the demo app [here](https://stackblitz.com/edit/nativescript-stackblitz-templates-j2k32w?file=app/firebase-analytics-page.ts).
123
132
124
-
## Analytics class API
133
+
## Analytics class
125
134
126
135
The plugin offers you the Analytics class through which you can manage Firebase Analytics.
127
136
The Analytics class has the following properties and methods.
0 commit comments