I dont think my cloud code AnalyticsRequest is bring triggered
O
One More Turn
started a topic
over 3 years ago
Hi there, I'm trying to log analytics in my cloud code so I made this generic function to handle it.
function logAnalytic(mKey, mStart, mEnd, mData) {
var mRequest = new SparkRequests.AnalyticsRequest();
mRequest.key = mKey;
if (mStart !== null) mRequest.start = mStart;
if (mEnd !== null) mRequest.end = mEnd;
if (mData !== null) mRequest.data = mData;
var response = mRequest.Send();
}
The problem is I cant seem to find any logs. When I search for any AnalyticsRequest (even with no additional filters) I cant seem to find any of my logs. Something in my above code must be wrong, yes?
If that is the function verbatim, I don't see you processing the response at all, so how would you know you don't have anything returned?
O
One More Turn
said
over 3 years ago
Yes it is. The only thing I get from the response is
{
"@class": ".AnalyticsResponse"
}
O
One More Turn
said
over 3 years ago
Is the example here not valid anymore? I am still not seeing any of the data I am logging or the event itself. Even the "In use" section when building rules for charts don't display the AnalyiticsRequest function.
O
One More Turn
said
over 3 years ago
no ideas or examples for AnalyticsRequest in cloud code?
One More Turn
Hi there, I'm trying to log analytics in my cloud code so I made this generic function to handle it.
The problem is I cant seem to find any logs. When I search for any AnalyticsRequest (even with no additional filters) I cant seem to find any of my logs. Something in my above code must be wrong, yes?
You can check out a bit more about that here -> https://docs.gamesparks.com/documentation/analytics/api-stream-analytics.html
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstChristopher Bonnell
One More Turn
Yes it is. The only thing I get from the response is
One More Turn
Is the example here not valid anymore? I am still not seeing any of the data I am logging or the event itself. Even the "In use" section when building rules for charts don't display the AnalyiticsRequest function.
One More Turn
no ideas or examples for AnalyticsRequest in cloud code?
Customer Support
You can check out a bit more about that here -> https://docs.gamesparks.com/documentation/analytics/api-stream-analytics.html
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2485 topics