Liste für automatische Abfrage bestimmter Werte in Piwik

Hallo,

hierzu habe ich noch nichts gefunden - vielleicht hat hier im Forum jemand eine Idee? Ich habe eine Excel-Liste mit Artikeln aus unserem Web-Angebot, für die ich gerne aus Piwik jeweils

  • die eindeutigen Seitenzugriffe und
  • die durchschnittliche Verweildauer auf der einzelnen Artikelseite

für einen bestimmten Zeitraum haben möchte. Jeder Artikel hat ein einzigartiges URL-Fragment, das zur Suche in Piwik geeignet ist. Gibt es einen Weg, diese Liste, bspw. als CSV, in Piwik einzugeben und die benötigten Werte dann wiederum in CSV oder Excel o.ä. ausgeben zu lassen?

Wäre toll, wenn jemand dazu eine Idee hätte.

Viele Grüße!

Hi @LousyWEather,

There are few possible approaches for such a case:

  1. You may define a segment, filtering out just these URLs you have to analyze. Then Pages report would bring you full list of these pages along with metrics, which you can easily export to CSV file and work on it in Excel. This is most convenient way

  2. If segmentation is not what you’d like to do, then you shall execute API calls pulling data for every of these pages. You could utilize &label_filter= parameter to filter these with using like LIKE clause or just &label= to match exactly.

I hope you find above tips helpful!

Hi,

first of all, thank you for your quick answer! The first solution would be the easiest one, but I wonder how to enter the list of URLs into the segment editor. That list contains about 1,500 entries at the moment. I cannot do this manually. Is there a way to upload a CSV or something similar? I haven’t found it so far.

Thanks again and best regards!

So you can define your segment using API call of SegmentEditor.Add, providing definition prepared earlier basing on list of your urls, like so:

SegmentEditor.add (“MySegment”, “pageUrl==http://example.shop.com/books,pageUrl==http://magic.com/form-attempt/”, 1, 1, 1)

(SegmentEditor.add (name, definition, idSite = ‘’, autoArchive = ‘’, enabledAllUsers = ‘’))

see this article for specific information about usage of Segmentation API: http://developer.piwik.org/api-reference/reporting-api-segmentation