Cranberry's Google Analytics plugin + XDK

Get help using Construct 2

Post » Wed Oct 19, 2016 10:29 am

Has anybody got track events working in XDK or Cocoon? I can see track screen in my analytics but no event tracking seems to fire... even On Track Event Suceeded/Failed functions inside my app dont fire.
Image
B
29
S
9
G
3
Posts: 170
Reputation: 3,297

Post » Wed Oct 19, 2016 11:17 pm

Hey man yes I have tracking events working. Something like this:

On Touched Object (eg a twitter button) > Call Function, 'Track Event' (param 0 = "button click", param 1 = "twitter button on main menu").

On Function 'Track Event' > (action: Cranberry's 'CordovaGoogleAnalytics Track event' Event Category: 'function param(0)' Event function: 'function param(1)'

Then in Google Analytics in the 'Real Time' section you should be able to see activity in the 'events' area.

Hope that helps.
B
65
S
46
G
57
Posts: 385
Reputation: 35,690

Post » Thu Oct 20, 2016 1:07 am

is @cranberry is active? he/she is MIA..
B
79
S
31
G
7
Posts: 148
Reputation: 9,179

Post » Thu Oct 20, 2016 8:48 pm

Artpunk wrote:Hey man. Yes in XDK you need to go to plugin management > add 3rd party plugin and in the field for 'Git Repository' add the link:
https://github.com/AndreasReitberger/go ... plugin.git

Then in your game add the Cranberry plugin. And you'll need to call the actions to 'track screen' (to track which layouts the player visists) or 'track event' to track things like button clicks or time in game etc.


Thanks Will give this a try!
My Games on google play

ImageImage
B
31
S
6
G
4
Posts: 97
Reputation: 3,099

Previous

Return to How do I....?

Who is online

Users browsing this forum: ivanski1983 and 15 guests