aws / aws-sdk-mobile-analytics-js

Amazon Mobile Analytics JavaScript SDK
Apache License 2.0
82 stars 38 forks source link

Custom events do not appear in "Custom Events" dashboard #13

Closed kest85 closed 8 years ago

kest85 commented 8 years ago

I have integrated everything as described (including call recordEvent()), but custom events do not appear in "Custom Events" dashboard. No errors in console. Also, I have tried many diffrerent variations, like setting endpoint manually, using startSession(), createEvent() functions, but I have not found combination which would work. Does custom events functionality work with js for anyone?

Graphfx commented 8 years ago

I have exactly the same problem...

cheruvian commented 8 years ago

We're happy to see if there is an issue with the JS SDK, some quick questions to help us determine the issue: 1.Which version of this repo are you using? (0.9.0 or 0.9.1) 2.Which version of the AWS SDK are you using? (Please note Mobile Analytics was not added until v2.1.18 though newer improvements depend on v2.2.37) 3.Which client are you using AMA.Manager or AMA.Client? 4.Is this integration intended for desktop browsers, mobile browsers, web views or HTML5 apps (cordova, phonegap, etc...)? 5.Finally, are you able to verify if requests are being made to the Amazon Mobile Analytics Service (please note the response code, 202 or 4XX)?

Please note that you can always reach out to us directly at amazon-mobile-analytics@amazon.com (Please include AWS Account ID and AMA Application ID) or post in the AWS Forums (do not post your AWS Account ID to the forums, AWS Support can retrieve this information from your login).

kest85 commented 8 years ago
  1. 0.9.0
  2. v2.2.33
  3. AMA.Manager
  4. Ionic app (cordova)
  5. I don't see any responses output in console. Is there a way to enable it?

I can see users and sessions in aws dashboard, but no custom events and no monetization events.

Graphfx commented 8 years ago

You can enable the output messages by adding a logger has option of AMA.Manager.

... new AMA.Manager({ appId : _APP_ID, ... logger: console };

Personally I have "Events Submitted Successfully" and status code 202 (but nothing on the AWS dashboard).

cheruvian commented 8 years ago

As @Graphfx has mentioned, you can pass a logger object as part of your initalization options. The full list of parameters can be found in the docs here.

Please go ahead and engage us via email at amazon-mobile-analytics@amazon.com (Please include AWS Account ID and AMA Application ID) or post in the AWS Forums (do not post your AWS Account ID to the forums, AWS Support can retrieve this information from your login) so that we can dive into this discrepancy further.

kest85 commented 8 years ago

This is the reason, why my events have failed: "Event Metric and Attribute Count cannot exceed 40"

Are there any plans to support higher number of metrics/atributes in future?

mdinescu commented 8 years ago

Hi @kest85,

I apologize for the long delay getting back to you on your question about increasing the limits of our service (http://docs.aws.amazon.com/mobileanalytics/latest/ug/limits.html).

Unfortunately we can't make any comments about our plans or feature road-maps here, however we're always interested in learning more about our customer's use cases and ways in which you would like to use our products.

If you'd like to discuss your use case for high-number of metrics and/or attributes please don't hesitate to engage us via email at amazon-mobile-analytics@amazon.com, or post in the AWS Forums (do NOT post your AWS Account ID to the forums - AWS Support can retrieve this information from your login).