I need Mixpanel or Amplitude for better analytics right now

@kobi-gamliel I will be happy for a little help here,

I embedded the Mixpanel’s code into the header but when I tried to add the tracking code -
mixpanel.track(“Song Played”,{
“Song Artist”: “The Rolling Stones”,
“Song Title”: “Gimme Shelter”
});

I get an error message: ‘mixpanel’ is not defined.
Also, when I add a code to the onClick event the button stop working.

Looking forward to your answer,
Asaf