googleAnalytics.logScreenName()

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

Overview

Logs the screen name with Google Analytics.

Syntax

googleAnalytics.logScreenName( screenName )
screenName (required)

String. The screen/scene name to log, for example "main menu".

Example

local googleAnalytics = require( "plugin.googleAnalytics" )

-- Initialize Google Analytics
googleAnalytics.init( "CoronaApp1", "UA-12345678-90" )

-- Log screen name with Google Analytics
googleAnalytics.logScreenName( "main menu" )