Widgetize - change default metrics from "visits over time" to "actions per visit"?

Hi there,

I ask myself, how can I change the default metrics “Visitors” to e.g. “actions per visit” or “maximum actions per visits” in a iframe widget call?

Furthermore: Is there any explanation for the possible options:
moduleToWidgetize=VisitsSummary
actionToWidgetize=getEvolutionGraph

Thank you,
michael

They are the module and action targets in the reporting API:
https://developer.matomo.org/api-reference/reporting-api#VisitsSummary

For the other question: no idea…

1 Like

Hello Philippe,
sorry for my late replay.
Thank you! So one question is solved for me :slight_smile:

again thanks @heurteph-ei Philippe, I now know what to do.

The parameter “columns_to_display” does the trick.

This is the standard widget for the visit overview:

<div id="widgetIframe"><iframe id="matomoframe" width="100%" height="350" src="http://mymatomo.url/index.php?module=Widgetize&action=iframe&forceView=1&viewDataTable=graphEvolution&disableLink=0&widget=1&moduleToWidgetize=VisitsSummary&actionToWidgetize=getEvolutionGraph&idSite=1&period=day&date=today&disableLink=1&widget=1" scrolling="yes" frameborder="0" marginheight="0" marginwidth="0"></iframe></div>

If I add &columns_to_display=nb_uniq_visitors the graph shows “unique visitors” as default instead of “Visits”, or &columns_to_display=nb_users, etc.