Unique Visitors at Page Level


(Avadhut) #1

Hi- How can we get Unique Visitors for each page ?


#2

Wouldn’t that be unique pageviews? (Behavior -> Pages )


(Avadhut) #3

That are Page Views , I need Unique Visitors for page


(Louis) #4

Unless you query the dB or create a custom report, then there are two immediate options I see:

API:
https://demo.matomo.org/index.php?date=yesterday&expanded=1&filter_limit=100&format=HTML&idSite=3&method=Actions.getPageTitles&module=API&period=day&token_auth=anonymous

Widget:
https://demo.matomo.org/index.php?module=Widgetize&action=iframe&widget=1&moduleToWidgetize=Actions&actionToWidgetize=getPageTitles&idSite=3&period=day&date=yesterday&disableLink=1&widget=1&columns=nb_uniq_visitors


(Avadhut) #5

Thanks Louis. But can I use this solution in free version ?


(Louis) #6

Yes, you don’t need to install any premium plugins for that to work.


(Avadhut) #7

Thank you very much Louis , it’s worked for me.
How can I get Page Url instead of Page title in this API ? I checked “Actions.getPageUrls” method too. And this method export only visitor details not page url. So, what should I do (other than custom variable) for exporting page title and url together ? or at least page url along with unique page visitors? is there any direct API ?


(Louis) #8

Hi, did you try:

https://demo.matomo.org/index.php?date=yesterday&expanded=1&filter_limit=100&format=HTML&idSite=3&method=Actions.getPageUrls&module=API&period=day&token_auth=anonymous

If so, why doesn’t this fit your need?

Unfortunately you can’t extract page url and title at the same time in Matomo. You would either need to join two extracts together, be wary of url fragments in that call or you could use a custom dimension with document.title, although that feels lik adding extra padding to your dB when that data is already there through standard tagging.

You could query the dB directly and join as detailed in the following blog:

https://talkdatatome.net/2014/10/08/connecting-tableau-to-piwik/


(Avadhut) #9

Thanks.Actually I want to see Unique Visitors against each page Title or page url for a MONTH but when I made a change in parameter at above url as period=month it is not returning me nb_uniq_visitors column.Is it possible to get Unique Visitors against each page Title or page url for a MONTH by API or else?


(Louis) #10

Hi, yes that is possible. Your instance of Matomo may not be configured to process Unique Visitors for a Month:

https://matomo.org/faq/how-to/faq_113/