Vue
To install Suppa in your Vue application:
- For Vue CLI projects, open your
public/index.html
file. - For Vite-based Vue projects, open the
index.html
file in your project root. - Add the Suppa script to the
<head>
section:
<!DOCTYPE html>
<html lang="en">
<head>
// ... other meta tags
<script
src="https://app.suppa.ai/integration/script.js"
data-api-key="YOUR_SUPPA_API_KEY"
></script>
</head>
<body>
<noscript>
<strong
>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
properly without JavaScript enabled. Please enable it to
continue.</strong
>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>