# Express (https://talivia.com/docs/installation-guides/express)



Use the shared HTML template that wraps your Express pages.




## Template apps [#template-apps]

If you use EJS, Pug, Handlebars, or another view engine, place the snippet in the base layout before `</body>`.

```html
<main>
  <!-- page content -->
</main>
<script defer src="https://talivia.com/script.js" data-website-id="YOUR_WEBSITE_ID"></script>
</body>
```

## Static apps [#static-apps]

If Express serves a static frontend, add the snippet to the generated `index.html`.

Replace the website ID. Use the value from Talivia Settings -> Tracking.

Restart the server, open a page, and verify the session in Talivia.
