Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

GameAnalitics addBusinesEvent issue
Started by rollerband Sep 09 2018 07:09 AM

4 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

rollerband

[GLOBAL: userInfoPane.html]
rollerband
  • Observer

  • 23 posts
  • Corona SDK

i Use it in my code:
 
local gameanalytics = require 'plugin.gameanalytics_v2'

...
...
gameanalytics.addBusinessEvent({
        currency = "USD",
        amount = 99,
        itemType = itemType,
        itemId = sendName,
        cartType = "shop",
   })
...

all as in the example.

But the data in the graphs are not displayed. What did I miss?
 
Do I need to give users unique names myself?
(by useng ga.configureUserId("my_custom_id")  ) 
I dont use this line of code. 
 

Attached Files



[TOPIC: post.html]
#2

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,175 posts
  • Corona SDK

So I have not used it the way you are using it. For me to get anything in that view that you are showing, I would have to do receipt validation. Second I always send the the customer_id that is generated from GameSparks in the configureUserId, but I believe that GA creates one if you don't send one.



[TOPIC: post.html]
#3

rollerband

[GLOBAL: userInfoPane.html]
rollerband
  • Observer

  • 23 posts
  • Corona SDK

I also believe in this)))  I check the purchase by Gamesparks and only then I send the event to gameAnalitics. (before that I riveted the recipe and still this field was empty) 



[TOPIC: post.html]
#4

rollerband

[GLOBAL: userInfoPane.html]
rollerband
  • Observer

  • 23 posts
  • Corona SDK

So I have not used it the way you are using it. For me to get anything in that view that you are showing, I would have to do receipt validation. Second I always send the the customer_id that is generated from GameSparks in the configureUserId, but I believe that GA creates one if you don't send one.

The Type field can be any string or it needs to be registered somewhere in advance as in a resource event? ( gameanalytics.configureAvailableResourceItemTypes({"sets","card_packs"} )



[TOPIC: post.html]
#5

rollerband

[GLOBAL: userInfoPane.html]
rollerband
  • Observer

  • 23 posts
  • Corona SDK

The problem is solved. I just forgot to specify a private key on the game server (Bundle Identifier).


[topic_controls]
[/topic_controls]