Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

User activity tracking #2

Open
newbot23 opened this issue May 9, 2017 · 8 comments
Open

User activity tracking #2

newbot23 opened this issue May 9, 2017 · 8 comments

Comments

@newbot23
Copy link

newbot23 commented May 9, 2017

Have integrated appmetrica in my app, I see events in dashboard, but no active users. What could be the reason?

According to Android SDK docs there is an autotracking funtionality (method YandexMetrica.enableActivityAutoTracking(this);). Does it work in cordova?

@bamx23
Copy link
Contributor

bamx23 commented May 10, 2017

AppMetrica here uses functionality of activity tracking available for Cordova plugins.
https://github.com/yandexmobile/metrica-plugin-cordova/blob/master/platforms/android/com/yandex/metrica/plugin/cordova/AppMetricaPlugin.java#L81
These methods should be called by Cordova to track user activity. Could you check if they being called in your application?

@newbot23
Copy link
Author

According to Documentation YandexMetrica.enableActivityAutoTracking(this); is an alternative to onResumeActivity(Activity activity) / onPauseActivity(Activity activity).
According to the Java Code in your plugin these methods were used in activate method.
Data is not available in the dashboard in real time, so it's kind of hard to understand whether the tracking works correct or not.
Right now I see acitve users yesterday and today too. I'm not sure whether it's just a lag in data availability or a techical issue.

@bamx23
Copy link
Contributor

bamx23 commented May 11, 2017

I see. It could be just a lag of a data transporting. If you realise that onResumeActivity / onPauseActivity don't work I will replace them with the call of enableActivityAutoTracking on activation.

@newbot23
Copy link
Author

According to appmetrica support lag should no exceed 2 minutes.
Right now I have opened a case at appmetrica support.
It does look like I see active devices today in dashboard, but no events and no active users.

@newbot23
Copy link
Author

newbot23 commented May 12, 2017

I have tested integration today - it looks like the app does not send data to server immediately. If you minimize the app and switch back - events are delivered to the server.

@bamx23
Copy link
Contributor

bamx23 commented May 12, 2017

It's quite strange. I'll investigate this.
By the way, our tester had no such problem. Does the sample in this repository work the same?

@newbot23
Copy link
Author

I have increased the events counts, so they push the events package to the server.
I see a very strange report: https://www.dropbox.com/s/rxfp35kpy33khje/Screenshot%202017-05-15%2015.21.40.png?dl=0
No users, but 2 devices, how that could be possible?
It seems to me that there is a connection between tracking user activity (not events) and tracking installs. I can restart application, do other things and when additional user appers in the dashboard.

@newbot23
Copy link
Author

I have tested the sample app and see same issues - no users, but events in the dashboard.

Burundug added a commit to Burundug/metrica-plugin-cordova that referenced this issue Jun 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants