Total visitors count is not updating

Hello,

I have integrated countly sdk to my app. Before the visitors count was updating properly. But now its not getting updated. I guess there is some issue with appKey because when I change the appKey to appKey of some other app the visitor count updates. So can you please look into this ?

Thank you.

0

Comments

19 comments
  • Hi Sharma

    I am not sure I get the point... I understand that it was working well and then something changed and it doesn't. Do you remember or know what has been changed in your server?

    An Appkey is specific to an application. App keys on the app should always match with app keys on the server.

    0
    Comment actions Permalink
  • Hello Sir,
    Thanks for the reply.

    I didn't change anything.. I have got 2 apps on server. I know there exists different appKey for different applications. So I added a test app and thought of using its appKey to verify is there any issue with countly sdk. But it works fine with my new appKey, which means sdk is proper. But for my old appKey it doesn't( session count gets incremented only visitors count will not update).

    Thank you.

    0
    Comment actions Permalink
  • Can you check your timezone? If you are on a different time zone than the application then you will see things in a delayed "view".

    0
    Comment actions Permalink
  • Both timezone are same: India Standard Time

    0
    Comment actions Permalink
  • Hello
    So are you on try.count.ly server or your own server? As if it would be try, we could easily check ourselves, what is going on.

    Other than that, the common pitfalls are:
    SDK requests are blocked (Check under Management -> Blocking Requests, if you have any blocks added)
    SDK requests are not reaching the server or incorrect app key (Check under Management -> Event Logs, if there are any requests recorded)

    0
    Comment actions Permalink
  • Hello Sir
    We are using our own server.

    I was tracking event logs in management tab as you told. I could see that, it records the events properly.

    0
    Comment actions Permalink
  • So data is incoming in Event Logs, but is not populating in the dashboard, etc?

    0
    Comment actions Permalink
  • Yes, only total visitors count is not updating, other events gets updated properly.

    0
    Comment actions Permalink
  • Hello,
    can you maybe share a screen shot of what exactly view you are talking about?

    For example, if you select period as a year, and then the same users are using your app, no new users, your total visitors would never increase, it would always be the same number for selected period.

    0
    Comment actions Permalink
  • Hello,

    I set period as today. I launched the app for the first time. Visitor count should increase right as I am the new user for today???
    But it is not increasing...

    0
    Comment actions Permalink
  • Yes, in this case it should
    Is it a public page? Can you specify a link, so we could check tracking code implementation?
    If not, can you share it here, replacing app_key and server values, for security purposes

    0
    Comment actions Permalink
  • Its not a public page. What do you want me to share actually? Code implementation for initialising countly?
    I can share screenshot of what page I am talking about.

    0
    Comment actions Permalink
  • Yes, basically the code you used in website.
    For example, maybe you are not calling track_sessions, or have a hardcoded device_id, etc

    0
    Comment actions Permalink
  • Hello,

    Finally could find out why it is not working but very strange.
    I have configured countly with deviceId = CLYOpenUDID. If I comment this line, it gets posted, else will not post visitors count.
    Why so????
    Because same code was working fine when I integrated countlySDK at the beginning.

    Thank You

    0
    Comment actions Permalink
  • Unfortunately it is really hard to comment, as I still don't understand the issue. In your screenshot for period "today", you have 8 visitors. If same visitor opens app again, it would not be counted again for that day, only increasing sessions.

    Also to not your screenshot states Visitors, which means you have selected App type as Web under Management -> Applications.

    But in your code = CLYOpenUDID, seems like an iOS constant. So are you using mobile app? Maybe you need to switch app type to mobile in Countly too?

    0
    Comment actions Permalink
  • Hello,

    Thanks for the reply.
    I am using mac-desktop app. Before there was no option like desktop, so i set it as Web.

    0
    Comment actions Permalink
  • I see, there is actually desktop app type now, if not available, check Management -> Plugins and enable Desktop plugin. Or try Mobile app type, it should perform in more standard way, because for Web type, lots of information is processed from user agent strings provided from browser, and they won't be available in custom SDK calls.

    0
    Comment actions Permalink
  • Hello,

    Yes, now desktop-appType is available, but when I created app in the countly it was not available, so i set it as web.

    Yes, as you told, now I can change it to desktop app type. But i want to know "Whether changing app type will cause any data loss? Will it erase existing analytics data?"

    Thank you very much.

    0
    Comment actions Permalink
  • It won't delete anything, but new incoming information will be processed a bit differently

    0
    Comment actions Permalink

Please sign in to leave a comment.