How to publish a page with a customized format? Publish on Vercel with Web analytics settings

I have recently been using Vercel to publish my notes.

Vercel offers a web analytics function that requires me to add some code to the index.html file.

However, every time I export the graph, the index.html file gets reset and the code disappears.

I’m wondering if there is any way to customize the export process so that the code I need to append remains intact.

Here is the code I need to append:

<script> = || function () { (window.vaq = window.vaq || []).push(arguments); };
<script defer src="/_vercel/insights/script.js"></script>