googleAnalytics.init()

Type Function
Return value none
Revision Release 2024.3703
Keywords analytics, Google Analytics, Google Analytics v2, googleAnalytics, googleAnalytics v2, googleAnalytics, init
See also googleAnalytics.logEvent()
googleAnalytics.logScreenName()
googleAnalytics.*

Overview

Initalizes the Google Analytics plugin. This step is mandatory before any other features or methods can be used.

Syntax

googleAnalytics.init( )

Example

local googleAnalytics = require( "plugin.googleAnalytics" )

-- Initialize Google Analytics
googleAnalytics.init( )