Allow user to change date range in Widget (iFrame)

I want to show analytics widgets on a page (pick and choose), but I have to “hard code” a date range in the widget URL.

I would like for the user (who is viewing my widgets) to be able to customize their own date range for each widget that is placed on the page.

The dashboard widget won’t load unless we change the config.ini.php file, so I am placing individual widgets on the page. It would be great if the user could change the date ranges on their own (as they can on the dashboard).

The way that I have achieved this is by having a form that takes the API parameters first and then upon submit posts the form field data (the parameters) into a page that gets the iframes. The user can then choose dates, period, filters etc before the iframe and corresponding analytics are loaded for them.

1 Like