Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.
/ analyticslove Public archive

Google Analytics reporting for Lua LÖVE game engine. It uses the Measurement protocol.

License

Notifications You must be signed in to change notification settings

nekromoff/analyticslove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

analyticslove

Google Analytics reporting for Lua LÖVE game engine. It uses Measurement protocol.

Pageviews, events and transactions (standard ecommerce) are supported.

Code examples

local analytics=require('analytics')

analytics.setID('UA-2734538-6') -- set your property ID
analytics.resetClientID() -- generate random clientID

-- Send pageview
analytics.view('/example-path', 'Example_title')

-- Send event
analytics.event('event_category', 'click', 'special')

-- Send transaction with a product
analytics.transaction('T11345', 100, 5, 15)
analytics.transactionItem('T11345', 'product_super', 'P98765', 50, 2)

See the analytics.lua for more info.

About

Google Analytics reporting for Lua LÖVE game engine. It uses the Measurement protocol.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages