Docs

Install guides

Install misomoon on Laravel, Django, and Rails

Add misomoon to an app that renders its pages on the server, such as Laravel, Django, Rails, or Phoenix.

Add the script

Paste the tag into the <head> of the layout that every page extends:

html
<script defer src="https://analytics.example.com/m.js?s=your-site"></script>
FrameworkUsual layout file
Laravelresources/views/layouts/app.blade.php
Djangotemplates/base.html
Railsapp/views/layouts/application.html.erb
Phoenixlib/your_app_web/components/layouts/root.html.heex

Send events from your server

To count something that happens on the server, such as a signup or a payment, use the Node SDK or post to /api/event (Send events from your server).

Check it works

Open your site in a browser. You appear in Live within a few seconds. If you don't, the browser console says why, for example misomoon skipped: bot, and Troubleshooting lists the other causes.

Next steps

Search every page and heading. ↑ ↓ to move, enter to open.