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
{{ message }}
This repository was archived by the owner on Apr 4, 2023. It is now read-only.
@@ -365,7 +364,7 @@ export class HelloWorldModel extends Observable {
365
364
}
366
365
367
366
publicdoLogAnalyticsEvent(): void{
368
-
analytics.logEvent({
367
+
firebase.analytics.logEvent({
369
368
// see https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event.html
370
369
key: "add_to_cart",
371
370
parameters: [{// optional
@@ -393,7 +392,7 @@ export class HelloWorldModel extends Observable {
393
392
}
394
393
395
394
publicdoSetAnalyticsUserProperty(): void{
396
-
analytics.setUserProperty({
395
+
firebase.analytics.setUserProperty({
397
396
key: "origin",// note that this needs to be preregistered, see https://support.google.com/firebase/answer/6317519?hl=en&ref_topic=6317489#create-property
398
397
value: "demoapp"
399
398
}).then(
@@ -422,7 +421,7 @@ export class HelloWorldModel extends Observable {
0 commit comments