API Docs for: 1.13.1
Show:

game.Analytics Class

Extends game.Class
Module: analytics

Google Analytics tracking.

Constructor

game.Analytics

(
  • id
)

Parameters:

  • id String

Item Index

Properties

Attributes

Methods

extend

(
  • prop
)
game.Class

Inherited from game.Class: engine/core.js:757

Extend class.

Parameters:

  • prop Object

Returns:

init

(
  • arguments
)

Inherited from game.Class: engine/core.js:811

This method is called, when you create new instance of the class.

Parameters:

  • arguments Array

inject

(
  • prop
)

Inherited from game.Class: engine/core.js:825

Inject class.

Parameters:

  • prop Object

send

(
  • category
  • action
  • [label]
  • [value]
)

Send event to analytics.

Parameters:

  • category String
  • action String
  • [label] String optional
  • [value] String optional

staticInit

(
  • arguments
)

Inherited from game.Class: engine/core.js:795

This method is called before init.

Parameters:

  • arguments Array

Properties

trackId

String

Current tracking id.

Attributes

id

String

Tracking id for analytics.