Embed graph on your site
Simple Analytics has a script which you can use to embed public website statistics. It's in beta, so use at your own risk.
<p>This website has <span id="pageviews"></span> page views in the last month.</p> <div data-sa-graph-url="https://simpleanalytics.com/simpleanalytics.com?color=75b5aa" data-sa-page-views-selector="#pageviews"> <p>Ad blockers don't like the Simple Analytics embed, disable yours to view this graph.</p> </div> <script src="https://cdn.simpleanalytics.io/embed.js"></script>
Simple Analytics has ... page views in the last month.
Ad blockers don't like the Simple Analytics embed, disable yours to view this graph.
You can give the graphs different colors by adding
?color=75b5aa to the url of the
data-sa-graph-url attribute. If you like to show the total page views you can use the
textContent attribute (so it only works on text tags like
You can just copy paste links from the normal dashboard, like these:
https://simpleanalytics.com/simpleanalytics.com/contact(stats of contact page)
https://simpleanalytics.com/simpleanalytics.com/(stats of home page)
If you include multiple graphs on your website make sure you include
<script src="https://cdn.simpleanalytics.io/embed.js"></script>only once.