Skip to content

Commit

Permalink
Added analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandresgf committed Nov 17, 2015
1 parent 607d53f commit f0aa5eb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions www/js/Boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,20 @@ define(['phaser', 'Preloader', 'Menu', 'Game', 'GameOver', 'Ads'], function (Pha
};

Boot.prototype.create = function () {
// start analytics
analytics.startTrackerWithId('UA-70227806-2');

// start admob
if (AdMob) {
AdMob.createBanner({
adId: 'ca-app-pub-6827992750433454/4589489121',
adId: 'ca-app-pub-7403543083567100/2876399875',
autoShow: false,
isTesting: true,
overlap: true
});

AdMob.prepareInterstitial({
adId: 'ca-app-pub-6827992750433454/7542955524',
adId: 'ca-app-pub-7403543083567100/4353133078',
autoShow: false,
isTesting: true,
overlap: true
Expand Down

0 comments on commit f0aa5eb

Please sign in to comment.