Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Page Transitions report as an image or pdf #13703

Open
davidaigle opened this issue Nov 13, 2018 · 5 comments
Open

Export Page Transitions report as an image or pdf #13703

davidaigle opened this issue Nov 13, 2018 · 5 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@davidaigle
Copy link

This is just a suggestion for the Open Transition view/report in Piwik. It would be awesome if that page view/report could be exported as either a PDF or Excel file of another format. Currently we can only open it, navigate through it and close it, we end up taking a screen capture of it when we present it to management or other web managers. But if it could be exported, somehow, potentially an option that would appear at the bottom of the Open Transition window, that would be fantastic!

@Findus23
Copy link
Member

While this isn't exactly what you want, a part of this is already possible. As you may know there is a Reporting API to access all data in Matomo. And it can also be used to access the transition data.

So this transition:
image
Can be accessed via https://demo.matomo.org/index.php?date=yesterday&actionType=url&actionName=http%3A%2F%2Fwww.virtual-drums.com%2F&expanded=1&format=JSON&module=API&method=Transitions.getTransitionsForAction&filter_limit=-1&idSite=3&period=day

And will give you the following data:

Klick to expand
{
  "date": "Mon, Nov 12",
  "previousPages": [
    {
      "label": "virtual-drums.com/videos.php",
      "referrals": 2
    },
    {
      "label": "virtual-drums.com/contact.php",
      "referrals": 1
    }
  ],
  "previousSiteSearches": [],
  "pageMetrics": {
    "loops": 6,
    "pageviews": 57,
    "entries": 48,
    "exits": 42
  },
  "followingPages": [
    {
      "label": "virtual-drums.com/photos.php",
      "referrals": 5
    },
    {
      "label": "virtual-drums.com/videos.php",
      "referrals": 2
    },
    {
      "label": "virtual-drums.com/contact.php",
      "referrals": 1
    },
    {
      "label": "virtual-drums.com/questions.php",
      "referrals": 1
    }
  ],
  "followingSiteSearches": [],
  "outlinks": [],
  "downloads": [],
  "referrers": [
    {
      "label": "Direct Entries",
      "shortName": "direct",
      "visits": 19,
      "details": []
    },
    {
      "label": "From Search Engines",
      "shortName": "search",
      "visits": 28,
      "details": [
        {
          "label": "virtual drum system",
          "referrals": "1"
        },
        {
          "label": "vitural drum set",
          "referrals": "1"
        }
      ]
    },
    {
      "label": "From Social Networks",
      "shortName": "social",
      "visits": 1,
      "details": [
        {
          "label": "YouTube",
          "referrals": "1"
        }
      ]
    }
  ]
}

As this data isn't two-dimensional it can only be exported as json or xml. But it includes all the data shown in the transition.

@tsteur
Copy link
Member

tsteur commented Nov 13, 2018

refs #9351

@mattab mattab changed the title Export Open Transition as a report: PDF visual version or Excel? Export Open Transition as an image or pdf Apr 12, 2019
@mattab mattab changed the title Export Open Transition as an image or pdf Export Page Transitions report as an image or pdf Apr 12, 2019
@mattab
Copy link
Member

mattab commented Apr 12, 2019

Thanks for the suggestion. Renamed this issue to reduce the scope to "PDF or Image" as excel/csv/etc is covered in #6032

@Findus23 Findus23 added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label May 23, 2020
@Starker3
Copy link
Contributor

We received another request today to allow the transitions reports to be exported as a PDF or image

@Chardonneaur
Copy link

@davidaigle well, probably not exactly what you are looking for but here is a workaround to get it as an Excel document: https://youtu.be/0ddxNxWO0aQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

7 participants