Google Analytics - build error

Hi, I am developing my new game and I would use Google Analytics plugin in it, but when I have builded my Android version I got error: 

You are not currently subscribed to the following pllugin:

Publisher: ‘com.coronalabs’

Plugin: ’ plugin.googleAnalytics’

Of course, I have Google Analytics account and my game is integratedwith it, I use tracking ID and game name in my source code, as you mentioned in tutorial.

It’s a quite fresh plugin and I can’t find a solution for my problem on the forum.

Can you help me?

The error was quite clear. Plugins have to be activated (subscribed to) at http://store.coronalabs.com except for some that are pre-activated (mostly ad related and early core plugins). There is a link the form you took the screen shot of that you can click to that will take you straight to the GA page on the store. Simply click “Activate” and complete the transaction. The plugin is free but it takes you through a shopping cart type experience anyway.  Once activated, give it a try. It could take a few hours to register.

Rob

Thank Rob I figured it out, but I have another question, it is possible to gather demographic information about users? Due to Google Analitycs I have to verify my tracking code, but in Corona SDK I simply init it by .init() function and there is now possible configuration options.

GA collects a lot of information on the user already with regards to location, device type, OS etc. But as far as I know if you want things like gender, age range, income etc. you’re going to have to ask the user for it and then you could set events for each data bit.

Rob

Sorry to bring this up here but it is somewhat related, but what is going on with plugins. The builder “sometimes” spits up errors like the one attached, and it is really messing up my flow.

Thanks,

Scott 

Attachment:

https://drive.google.com/file/d/0B5swSg-cH4L6RC1ibkREbUx3S1E/view?usp=sharing

Same problem here @scottrules44.

Investigating.

Just to clarify Rob, as @scottrules44 mentioned, it happens sometimes.

Today I faced that error 2-3 times when loading OneSignal plugin. Then I try to the build again and it works.

Same problem but only with plugin.googleAnalytics enabled in build.settings

  plugins = {

[“plugin.googleAnalytics”] = { publisherId = “com.coronalabs”, supportedPlatforms = { android=true } },

    [“CoronaProvider.native.popup.social”] = { publisherId = “com.coronalabs” },

    [“plugin.facebook.v4”] = { publisherId = “com.coronalabs” },

[“plugin.OneSignal”] = { publisherId = “com.onesignal” },

    [“plugin.openssl”] = { publisherId = “com.coronalabs” },

[“plugin.GameThrivePushNotifications”] = { publisherId = “com.gamethrive” },

    [“plugin.advertisingId”] = { publisherId = “com.coronalabs” },

[“plugin.google.play.services”] = { publisherId = “com.coronalabs”, supportedPlatforms = { android=true } },

[“plugin.google.iap.v3”] = { publisherId = “com.coronalabs”, supportedPlatforms = { android=true } },

    [“CoronaProvider.gameNetwork.google”] = { publisherId = “com.coronalabs”, }

  }, 

error1.png error2.png

Is this still an issue? I’ve seen other threads where it seems to have cleared up.

Rob

Unfortunately yes. This configuration give me a error :

sim.png

error.png

screen.png

And after about 4 minutes …

screen2.png

After disabling the Google Analytics ** everything works well**

works.png

well.png

Strange but true :slight_smile:

Marcus

Hi Marcus,

I’d like to check that it’s not some other conflict between plugins (unlikely but we’ll see). Can you build the Google Analytics sample app that is linked from the documentation?

https://github.com/coronalabs/plugins-sample-googleAnalytics

Brent

Hi Marcus,

Other users are reporting some conflict between the Google Analytics plugin and the “advertisingId” plugin. I have asked the engineers to investigate why this might be a problem…

Brent

Yes. Example app works well.

Marcus

Disabling plugin “advertisingId” does not change anything.

error3.png

Marcus

07:46:38.434  

07:46:38.434  Windows simulator build date: Mar  2 2016 @ 02:43:41

07:46:38.434  

07:46:40.448  

07:46:40.448  Copyright © 2009-2016  C o r o n a   L a b s   I n c .

07:46:40.448   Version: 3.0.0

07:46:40.448   Build: 2016.2832

07:50:53.466  BuildID: kCoronaBuild [A device build error occurred on the server. 

07:50:53.466  

07:50:53.466  BuildID: 56d92f8442d8e 

07:50:53.466  Error: 

07:50:53.466  ERROR: An error occurred during build. The server returned the following message:

07:50:53.466  —

07:50:53.466  A device build error occurred on the server. 

07:50:53.466  

07:50:53.466  BuildID: 56d92f8442d8e 

07:50:53.466  Error: 

07:50:53.466  —

07:50:53.528  Android build failed (5)

The new version of the simulator but still the same error. Any ideas?

Marcus

We think the problem is you are hitting an Android limit for the maximum number of symbols in your libraries. Engineering is working on a feature that will increase the number of symbols allowed. In the mean time you will likely need to limit the number of plugins you are using until we solve this. Fixing this is pretty high on the engineering plan at the moment.

Rob

The error was quite clear. Plugins have to be activated (subscribed to) at http://store.coronalabs.com except for some that are pre-activated (mostly ad related and early core plugins). There is a link the form you took the screen shot of that you can click to that will take you straight to the GA page on the store. Simply click “Activate” and complete the transaction. The plugin is free but it takes you through a shopping cart type experience anyway.  Once activated, give it a try. It could take a few hours to register.

Rob

Thank Rob I figured it out, but I have another question, it is possible to gather demographic information about users? Due to Google Analitycs I have to verify my tracking code, but in Corona SDK I simply init it by .init() function and there is now possible configuration options.

GA collects a lot of information on the user already with regards to location, device type, OS etc. But as far as I know if you want things like gender, age range, income etc. you’re going to have to ask the user for it and then you could set events for each data bit.

Rob