Hi pepe, I have same requirement and issue as yours. I will follow your post and appreciate it if you can discuss with me to find a solution.
Thread Starter
pepe22
(@pepe22)
Daniel2han, Yep, will do. Was your experience same as mine when reading documentation? I did not find any reference in how to make report or have report attached to email. The only reference was to ensure that smtp was correctly setup and to check cron jobs (with no information as to what cron jobs to look for or what arguments should be included).
Funny thing is, in the report text body I added the following:
—
This should contain some statistics from the site either as a report or as an attachment
[wpstatistics stat=visitors time=today]
—
When I get a report email to me there is a number that increments with each report and resets each day, like this:
—
This should contain some statistics from the site either as a report or as an
attachment 0
—
So is bug or the documentation needs to be augmented with further instructions.
Anyway, will see what they have to say.
Thanks,
Ron…
Thread Starter
pepe22
(@pepe22)
I did a little more research and found that what I want (an email containing the statistics from the Overview page either as an attachment or part of the report) is not possible at this time. To get any sort of statistics from the site emailed to you from the plugin you need to have correctly configured your SMTP settings (I use the Easy WP SMTP plugin, which has a neat test feature to confirm you have configured it correctly) and included all the provided short codes in the Reports area under the Notification tab.
After adding the following (see below) I was able to get some limited statistics emailed to me. It is not much but it is something. Knowing this I would prefer to have the statistics attached as a .CSV file so it can include all the information that the plugin provides. This way I can import it into a spreadsheet and parse it as needed.
These are the short codes:
Online User: [wpstatistics stat=usersonline]
Today’s Visitors: [wpstatistics stat=visitors time=today]
Today’s Visits: [wpstatistics stat=visits time=today]
Yesterday’s Visitors: [wpstatistics stat=visitors time=yesterday]
Yesterday’s Visits: [wpstatistics stat=visits time=yesterday]
Total Visitors: [wpstatistics stat=visitors time=total]
Total Visits: [wpstatistics stat=visits time=total]
There is a note in the Reports area indicating the documentation has a listing of all available short codes but I do not find it. At any rate, this is the output that can be expected from the above:
Online User: 0| Today’s Visitors: |6| Today’s Visits: |19|
Yesterday’s Visitors: |5| Yesterday’s Visits: |35| Total Visitors: |1017| Total
Visits: |1857|
I left a note for the developer on this and am hoping they can find time to add it to the plugin.