# Export data from session log

**URL:** <https://community.piwik.pro/t/export-data-from-session-log/4930>\
**Category:** Reports and working with data\
**Created:** [February 21, 2025, 5:02pm UTC](https://community.piwik.pro/t/export-data-from-session-log/4930 "2025-02-21T17:02:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wojtek](https://avatars.discourse-cdn.com/v4/letter/w/c77e96/32.png) [@Wojtek](https://community.piwik.pro/u/Wojtek)\
**Post date:** [February 21, 2025, 5:02pm UTC](https://community.piwik.pro/t/export-data-from-session-log/4930/1 "2025-02-21T17:02:48Z")

</div>

Hello, is it possible to export data to Excel for sessions with conversions? However, I need all sessions from the last 90 days for users who have made a conversion. It seems that currently, the data export includes only the session from the day the conversion was made.

If not to Excel, is it possible to do it via the API?

---

<div class="post-metadata">

**Author:** ![gonerator](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/gonerator/32/3549_2.png) [@gonerator](https://community.piwik.pro/u/gonerator)\
**Post date:** [February 23, 2025, 10:18am UTC](https://community.piwik.pro/t/export-data-from-session-log/4930/2 "2025-02-23T10:18:52Z")

</div>

Hey @Wojtek! What you’re describing is entirely possible. The tricky part is in the fact that you need to:

- first collect the information about which visitors performed given conversion
- secondly fetch the data for those visitors for those 90 days back

I created a guide on how to fetch raw data from Piwik PRO into Google Spreadsheet:

[![](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/2X/3/3197d76e1cfbce2ec9d19d1ab2143c1ac5aa71f7.jpeg "How to create Video Events report from Piwik PRO raw data in Google Sheets (step by step tutorial)") ](https://www.youtube.com/watch?v=hfAQRcwAf0s)

If you want to play around with API calls you can do it with another tool I created for this → [https://logbaker.com/](https://logbaker.com/)

Also feel free to reach out to me via DM here or my socials, we can figure this out together. For example a Python script could do both of those things in one run and output a ready to go Excel file 🙂

---

<div class="post-metadata">

**Author:** ![Wojtek](https://avatars.discourse-cdn.com/v4/letter/w/c77e96/32.png) [@Wojtek](https://community.piwik.pro/u/Wojtek)\
**Post date:** [March 3, 2025, 9:00pm UTC](https://community.piwik.pro/t/export-data-from-session-log/4930/3 "2025-03-03T21:00:41Z")

</div>

O that is very nice! Thank you very much. I will contact you probably because this is what I’m looking for. Thanks

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/1X/db7013c4fd6a24443b339309db52f14995207737.png) [@system](https://community.piwik.pro/u/system)\
**Post date:** [March 17, 2025, 9:01pm UTC](https://community.piwik.pro/t/export-data-from-session-log/4930/4 "2025-03-17T21:01:11Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
