How to add our script edit

Include these two lines on every page at the end of your <body> (or anywhere else):

<!-- Simple Analytics - 100% privacy-first analytics -->
<script async defer src=""></script>
<noscript><img src="" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>

To install the script on Wordpress, Ghost, WIX, Squarespace, Webflow, Gatsby, Vue, Django, Ruby, and others, go to Install on other platforms.

We have a website setup wizard to test if you installed your script correctly. If you still have problems installing it, please let us know! We helped a lot of people with setting up their script and we love to help you as well. Just contact us.


With Simple Analytics you don’t need to manually trigger page views in SPA. We automatically trigger page views in Single Page Apps (SPA’s) like React, Vue, and Angular. You can also use hash navigation to trigger page views.

Some people like a very light script. All our scripts are heavily compressed and we have an extra light version.

If you want to run the script on localhost, please use our dev ( version. Note the .dev part. You might want to overwrite your hostname from localhost to something like (where is your domain) to receive it in your dashboard. Make sure to remove the .dev part from the script on production.

When you are done implementing go to your dashboard.

If you encounter issues, don’t hesitate to contact us via our support channels.

Javascript version

If you can’t embed HTML, but you can embed JavaScript, here is the code you need to install Simple Analytics with just JavaScript.

// Simple Analytics - 100% privacy-first analytics
const script = document.createElement("script");
script.setAttribute("src", "");

Open source

Our user facing scripts are open source on GitHub.