Calculate Unique Downloads, Unique Pageviews, Unique Keywords & Unique Outlinks

Hello everyone,

I am extracting Motamo data using Live.getLastVisitsDetails method. However I need to calculate Unique Downloads, Unique Pageviews, Unique Keywords & Unique Outlinks for each month. I tried to calculate them using the defintions provided in the documentation (which was of no use). Could you please let me what could be the formula to calculate these metrics

Unique Downloads: distinct count of visitorid when type = download

Unique Pageviews:

Unique Keywords: distinct count of sitesearchkeyword when type = search

Unique Outlinks: distinct count of visitorid when type = outlink