Embed Reports
Embedding Logaholic Reports
All reports on the Summary tab (except Road to Sales) can also be embedded in an HTML page. This is useful when you wish to integrate information from Logaholic into your own web-based applications.
To show a report in your own HTML page, simply add statstable_only=1 to the end of the URL query string for that report.
For example, a simple request to retrieve a basic HTML table of the "Visitors per Day" report and display it on one of your pages might look like this:
http://domain.com/logaholic/reports.php?conf=profilename&labels=Visitors per Day&minimumDate=11/01/2010&maximumDate=11/03/2010&statstable_only=1
Variables you'll need to replace in the example above are printed in red. When requesting URLs like this through javascript or other programming languages, you should URL Encode the query string first.
There are many more variables you can add to change the content that is returned, but the easiest way to do this is to simply request the report you want from the Logaholic user interface and then copy the url and add &statstable_only=1 to the end.
The contents of the returned HTML page displays only a simple, bare-bones table containing the data.
Here is what the above link looks like when it is URL Encoded: