npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gameanalytics

v4.4.7

Published

Official JavaScript SDK for GameAnalytics. GameAnalytics is a free analytics platform that helps game developers understand their players' behaviour by delivering relevant insights.

Downloads

4,241

Readme

npm npm MIT license

GA-SDK-JAVASCRIPT

Official repository for GameAnalytics JavaScript SDK. Written in Typescript.

Documentation can be found here.

Changelog

4.4.6

  • fixed timestamps for daylight saving time

4.4.5

  • fixed enums in typescript decleration file

4.4.4

  • changed event uuid field name

4.4.3

  • added event uuid to events sent

4.4.2

  • added error events to be sent for invalid custom event fields used
  • added optional mergeFields argument to event methods to merge with global custom fields instead of overwrite them

4.4.1

  • fixed missing custom event fields for when trying to fix missing session end events

4.4.0

  • added global custom event fields function to allow to add custom fields to events sent automatically by the SDK

4.3.1

  • added functionality to force a new user in a/b testing without having to uninstall app first, simply use custom user id function to set a new user id which hasn't been used yet

4.3.0

  • added custom event fields feature

4.2.3

  • added flutter to sdk version validator

4.2.2

  • fixed addProgressionEvent score bug

4.2.1

  • fixed ad event bug

4.2.0

  • added before unload listener functions

4.1.6

  • removed unused logs

4.1.5

  • updated client ts validator

4.1.4

  • corrected ad event annotation

4.1.3

  • added godot to version validator

4.1.2

  • small correction for support for KaiOS

4.1.1

  • added support for KaiOS

4.1.0

  • added ad event

4.0.10

  • fixed bug to not send stored events from previous sessions (offline events or session end events not sent yet) by games on the same domain
  • this bug fix can potentially affect metrics slightly so be aware of this as old stored events (offline events and session end events not sent yet) in games will not be sent with this new fix because internal keys for storing events in localstorage have changed now

4.0.9

  • added better internal error reporting

4.0.8

  • fixed cryptojs bug

4.0.7

  • added session_num to init request

4.0.6

  • removed gender, facebook and birthyear methods

4.0.5

  • A/B testing fixes

4.0.4

  • remote configs fixes

4.0.3

  • small remote configs fix

4.0.2

  • fixed events bug

4.0.1

  • small bug fix for http requests

4.0.0

  • Remote Config calls have been updated and the old calls have deprecated. Please see GA documentation for the new SDK calls and migration guide
  • A/B testing support added

3.1.2

  • declaration file fix

3.1.1

  • typescript definition file fixed

3.1.0

  • aded enable/disable event submission function

3.0.3

  • fixed business event validation

3.0.2

  • removed manual session handling check for startsession and endsession

3.0.1

  • added missing function mappings

3.0.0

  • added command center functionality

2.1.5

  • fix to getbrowserversion for webviews on ios

2.1.4

  • added custom dimensions to design and error events

2.1.3

  • fixed not allowing to add events when session is not started
  • fixed session length bug

2.1.2

  • fixed browser version fetch to support facebook

2.1.1

  • fixed null error on property 'running'

2.1.0

  • fixed sending events request when no events to send
  • added possiblity to change event process interval

2.0.1

  • scoped javascript sdk namespace

2.0.0

  • changed root namespace from 'ga' to 'gameanalytics'
  • it is now possible to async load library on websites to avoid any delays when loading the website (just like it is possible with Google Analytics)

1.1.11

  • added 'construct' to version validator

1.0.10

  • bug fix for end session when using manual session handling

1.0.9

  • bug fix for sending events straight after initializing sdk

1.0.8

  • removed debug log messages for release distribution versions

1.0.7

  • version validator updated with gamemaker

1.0.6

  • small bug fix in validator

1.0.5

  • added os version

1.0.4

  • bug fix for GAEvents.fixMissingSessionEndEvents

1.0.3

  • minor dependency fixes

1.0.2

  • enabled to use sdk via npm

1.0.1

  • fixed debug log messages to use console.log when console.debug is not available

1.0.0

  • bumped to v1.0.0

0.1.0

  • initial release