Firebase Analytics Plugin By Scott H Tech

https://marketplace.coronalabs.com/plugin/firebase-analytics

May I know how do I log a custom event with no parameter with this plugin?

I tried to use

firebaseAnalytics.logEvent(“Event A”, {}) but nothing gets recorded.

try passing data

firebaseAnalytics.logEvent(“Event A”, {hello = “world”})

it also may take 24 to appear in dashboard

Thanks for your reply.

I have already seeing other predefined events appearing like “first_open” and “screen_view” but not the custom events.

I will give your solution a try.

After passing in some data, firebase group all my custom events into the error event.

firebaseAnalytics.setCurrentScreen(screenName, screenClass) also doesn’t seem to to work.

It seems like only select_content gets logged.

That is odd

Please file a bug report here

https://docs.google.com/forms/d/e/1FAIpQLSf-V3z-V3FZ5y9Sb19cxVfjx7fSRV9HIbpAGptN7DaY3Ki_DA/viewform?usp=send_form

Submitted.  Thanks.

The problem is that

“Event A”

cannot have space

“Event_A”

Ok. I will give it a try.

There is some problem with this plugin, it allows us to just do require call and init call

when i call logEvent, it got crashed. Here is the log. https://pastebin.com/UbVtY0ME

This is the code i have used in the main:

local firebaseAnalytics = require “plugin.firebaseAnalytics”

firebaseAnalytics.init()

firebaseAnalytics.logEvent(“Game started”, {content_type = “Main”, item_id= “Running Fast”})

This is my plugin call in Build

[“plugin.firebaseAnalytics”] = { publisherId = “tech.scotth”, },

this is inside Android table in build

[“google_app_id”]= “1:XXXXXX:android:XXXXXXX” I have written XXXXX for my Id to keep it safe

},

useGoogleServicesJson = true,

Please tell me whats wrong with my code.