Our goal is for Newgrounds to be ad free for everyone! Become a Supporter today and help make this dream a reality!

Browse Sections

Newgrounds Wiki: logCustomEvent


import com.newgrounds.API;
  • event - The name of the event you want to log as defined in the "Referrals and Events" page of your API Settings.

Each time this call is made, your API stats will show an increment to the specified event. You can use this to track how many people beat your game, view your movie till the very end, or any other variety of purposes you can imagine.