Add DataFast to your Bolt application
Bolt creates full-stack applications using AI prompts. Since the platform generates code automatically, you'll need to instruct Bolt's AI to integrate the DataFast tracking script into your project.
Step 1: Gather your tracking information
Navigate to your DataFast website settings and copy your Website ID (e.g., "66d5561aa2f1fb254ce42d0b") and domain name (e.g., "yourdomain.com").
You'll find this information in your DataFast tracking script:
<script
defer
data-website-id="YOUR_WEBSITE_ID"
data-domain="YOUR_DOMAIN.COM"
src="https://datafa.st/js/script.js"
></script>
Step 2: Use this AI prompt in Bolt
Copy the template below, fill in your tracking details, and send it to Bolt:
I need to integrate DataFast analytics into my application. Please implement tracking that works across all pages of my app. Add this analytics script to my project: <script defer data-website-id="⚠️>>> REPLACE WITH YOUR WEBSITE ID <<<⚠️" data-domain="⚠️>>> REPLACE WITH YOUR DOMAIN <<<⚠️" src="https://datafa.st/js/script.js" ></script> Implementation guidelines: - For React/Next.js apps: Add the Script component to the root layout or _app.js - For vanilla HTML apps: Include in the <head> section of all pages - For Vue/Nuxt apps: Add to the app.vue or nuxt.config.js - Ensure the script loads on every route and page - Maintain the "defer" attribute for optimal performance Please confirm the implementation method you used and verify that analytics will track across all pages of the application.
Step 3: Confirm implementation
After Bolt implements the changes:
- Test the preview - Use Bolt's preview feature to check your app
- Deploy your project - Use Bolt's deployment options (Netlify, Vercel, etc.)
- Monitor your dashboard - Check your DataFast dashboard for incoming traffic data
Troubleshooting
If you don't see analytics data:
Can you verify the DataFast analytics implementation? Please check: 1. Which framework/structure did you use for my app? 2. Where exactly did you place the analytics script? 3. Will it load on all routes and pages? 4. Can you show me the implementation? The script should load: https://datafa.st/js/script.js Using my website ID: ⚠️>>> REPLACE WITH YOUR WEBSITE ID <<<⚠️ If there's an issue, please fix it using the appropriate method for my app's framework.
Common problems:
- Analytics only tracking on landing page
- Script not included in the build process
- Missing or incorrect tracking parameters
- Bolt hasn't deployed the latest changes
Need assistance?
Contact us at marc@datafa.st if you need help with your Bolt integration.