doublesecretagency / craft-adwizard

Ad Wizard plugin for Craft CMS
Other
7 stars 8 forks source link

FR: Graphs & Export #12

Open bymayo opened 4 years ago

bymayo commented 4 years ago

Just installed this plugin, and one of the first thing our clients are asking for is how can they in future download stats as a CSV for reports.

Seeing graphs like on the dashboard just within Ad Wizard 'Stats' page is also a question raised.

It would be great also if the graphs on the widgets were not by group, but there was an All option to see totals over all groups, but also to have an All option to "Select Ad", so we can see totals per group, not per advert.

lindseydiloreto commented 4 years ago

Hey Jason, thanks for the feedback! These are all really great suggestions.

Right now, the best way to access Ad data is via PHP. You can actually tap into the various Records to get whatever data you want. Then you can use that data anywhere, to render whatever chart or graph you want.

But I agree that it would be much nicer to have some more built-in graphs, or a better API to work with. I have some long-term plans that would make that much easier, though it might be quite awhile before those ideas see daylight.

In the meantime, I'll keep these feature requests open. Thanks for the feedback! 🍺

lindseydiloreto commented 4 years ago

In terms of your client's concerns... Take a look at the various report-generating plugins in the store. There is at least one, maybe more, that will let you collect data via PHP. That would make it reasonably straightforward to collect whatever data you want from Ad Wizard.

bymayo commented 4 years ago

@lindseydiloreto Thanks for linking to those bits. I'll look at extending the plugin a bit then to generate some widgets and graphs on the front end.

With the exporting, I can sort this with a module, or like you said a plugin from the store, but it would be nice if there was a way of generating reports and exporting them rathe than just having a current month and previous month stat with no export.