Jump to content

Search the Community

Showing results for tags 'fluffy kittens'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hola, So I tried integrating GA into my latest game for some stats tracking based on official google docs. I got the page views and events working but my metrics show up as "not set" for some reason. Here's my set up: Here's the code I set up: TrackPageView: function(inPage, inTitle) { if(!this._IsInitted || !this._IsEnabled) { return; } ga('send', 'pageview', inPage); if(typeof inTitle !== 'undefined') { ga('set', 'title', inTitle); } console.log("GA PageView: [" + inPage + "][" + inTitle + "]"); }, TrackEvent: function(inCategory, inAction, inLabel) { if(!this._IsInitted || !this._IsEnabled) { return; } ga('send', 'event', inCategory, inAction, inLabel); console.log("GA Event: [" + inCategory + "][" + inAction + "][" + inLabel + "]"); }, //https://developers.google.com/analytics/devguides/collection/analyticsjs/custom-dims-mets TrackEventVar(inIndex, inValue) { if(!this._IsInitted || !this._IsEnabled) { return; } var i = 'metric' + inIndex; //ga('send', 'event', inCategory, inAction, { // i: inValue //}); ga('set', i, inValue ); console.log("GA EventVar: [" + i + " = " + inValue + "]"); }, And here's where I use it: sGA.TrackEventVar(1, Math.floor(playTime)); sGA.TrackEventVar(2, Math.floor(sStats.FollowerSpawnedTotal)); sGA.TrackEventVar(7, Math.floor(sStats.BlueFlowersCollected)); sGA.TrackEventVar(4, Math.floor(sStats.FollowersDied)); sGA.TrackEventVar(3, Math.floor(sStats.FlowersCollected)); sGA.TrackEventVar(5, Math.floor(sStats.BunniesKilled)); sGA.TrackEventVar(6, Math.floor(sStats.SnakesKilled)); sGA.TrackEvent("Game End", "GameEnd", "Game WON"); sGA.TrackPageView("/gather-game-end-win", "GATHER Game WON"); Both Event and PageViews report properly, and the metrics under "Audience -> Custom -> User Defined" show up as "(not set)" Any idea?
×
×
  • Create New...