Prompt: Installing Script Tag
Ready-to-use AI prompt for installing the Beag.io script tag in any framework.
Copy and paste this prompt into your AI assistant (Cursor, Copilot, etc.) to install the Beag script tag in your project.
The Prompt
Install Beag script to protect this SaaS application:
1. Create an empty beag.js file in the appropriate static/public folder
for this project (e.g., /js, /public/js, /static/js, /assets/js, or
project root). Leave it empty - I will paste the code myself.
2. Add the script tag before </head> in the appropriate location based
on the framework:
- Static/Template sites: layout or base template file
- Next.js (pages): _document.tsx
- Next.js (app router): app/layout.tsx
- React (Vite/CRA): index.html
- Vue/Nuxt: app.vue or nuxt.config head section
- SvelteKit: app.html
- Astro: main layout .astro file
- Angular: src/index.html
<script type="module" src="[relative-path-to-beag.js]"></script>
3. Show me which files were created/modified.