Grouping pages

I need recipe on how can i group pages viewed by user by some categories? should i modify data passed to 'track_pageview'  event or it can be done directly in counlty dashboards? or it can not be done?

0

Comments

7 comments
  • Official comment

    Hi Andreii,

    This can be achieved using custom view segments. Support for view segments was recently added for iOS and Android SDKs and both SDKs support manual and automatic view tracking with segmentation. The Android doc is already updated with examples and iOS doc will be updated very soon.

    Comment actions Permalink
  • Thanx and i also that view segment are available for web, you can add custom segments like this:

    Countly.q.push(['track_pageview','page name', null, {pageGroup: 'page group name'}]);

    And when creating drill, you can view all your pages grouped. 

    P.S. Although it doesn't seems to work, if i go here analytics -> page views

    and i click on all segments drop down i see only platform but cant see segments i have defined. For my case is pageGroup. I use code above. 

    Debug mode shows this: 

    Processing queued call
    ["track_pageview","Trends",null,{"pageGroup":"Trends","theme":"red","someSTUFF":"DAS"}]

    1
    Comment actions Permalink
  • Does view segments works for web? i see it on docs yet it seems not to be working, any help would be appreciated 

    0
    Comment actions Permalink
  • Hello Andrii,

    Yes, it should work. Can you please tell me more about the issue and what exactly you mean by them "not working"?

    0
    Comment actions Permalink
  • Well i see that counlty sends data to server, i see that data is correct but i don't see in segments what i need(only platform and thats it, yet for mobiles it works perfectly). Please see screen.

    Console is without errors.

    0
    Comment actions Permalink
  • I have enterprise edition, maybe it is possible to organise skype call so i can show you everything?  

    0
    Comment actions Permalink
  • I think i found problem, if i use js from my server like https://countly.mydomain.com/sdk/web/countly.min.js it is not working, yet if i use https://cdn.jsdelivr.net/npm/countly-sdk-web@latest/lib/countly.min.js it worked. And question is why? and what is best practise here? i mean my countly on my server will be or will not be updated and i am not sure how often it will be updated, so i would rather use js from my server to avoid versions collision

    0
    Comment actions Permalink

Please sign in to leave a comment.