title: Button press event on Firebase Analytics
body: <p>I know this looks like a silly question but I couldn't find any proper answer or documentation in the community.</p>
  
  <p>I'm moving my project from Google Analytics to Firebase.
  Now I'm sending button press analytics data with below code</p>
  
  <pre><code>guard let tracker = GAI.sharedInstance().defaultTracker, let builder = GAIDictionaryBuilder.createEvent(withCategory: "Button", action: "Interaction", label: "Log-In Button Pressed", value: NSNumber(integerLiteral: value ?? 0))
          else { return }
  
  tracker.set(kGAIScreenName, value: "Log-in Page")
  tracker.send(builder.build() as [NSObject : AnyObject])
  </code></pre>
  
  <p><strong>My Question</strong> is that where should I put my screen name and category on Firebase Analytics?</p>
  
  <p>As I searched, Google limits events with 500. "Button_Pressed" can be used as a global event and screen name, etc can be parameters. However, I'm not sure If It will be the best approach. </p>
  
  <p><strong>Second Question</strong> is that as I searched, we can't use same event names with the ones Firebase provides itself. I know my custom event name isn't used by default on Firebase but how can I be sure that "Button_Pressed" won't be added ?</p>
  
  <p><a href="https://support.google.com/firebase/answer/6317498?hl=en&amp;ref_topic=6317484" rel="nofollow noreferrer">https://support.google.com/firebase/answer/6317498?hl=en&amp;ref_topic=6317484</a></p>
  
  <p>How I'm thinking to log button event on Firebase:</p>
  
  <pre><code>Analytics.logEvent("Button_Pressed", parameters: [
    "screenName": "Log-in Screen",
    "event": "Log-in Button Pressed",
    "category": "Interaction"
    ])
  </code></pre>
  
  <p>What I searched so far</p>
  
  <p><a href="https://stackoverflow.com/questions/39635123/what-event-should-i-use-for-sending-a-button-pressed-event-on-firebase-analyti">What event should i use for sending a &quot;button pressed&quot; event on Firebase Analytics</a></p>