Add DataFast to your Bubble.io app
Follow these steps to integrate DataFast analytics into your Bubble.io application.
Add tracking script to Settings
Bubble allows you to add custom HTML and JavaScript code through the Settings tab.
-
Open your Bubble app editor
-
Go to Settings > SEO/Metatags
-
Scroll down to the Advanced settings section
-
In the Script/meta tags in header field, paste 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>
Replace
YOUR_WEBSITE_ID
with your actual Website ID from DataFast. ReplaceYOUR_DOMAIN.COM
with your website's root domain. -
Click Save
Alternative: Using HTML element
You can also add the script using an HTML element on your pages:
- Add an HTML element to your page
- Paste the DataFast tracking script in the HTML element
- Make sure the element is placed in the header section of your page
Verify installation
After implementing:
- Preview or publish your Bubble app
- Check your DataFast dashboard for incoming data
- It might take a few minutes for the first pageviews to appear
Note: Custom code in Bubble requires a paid plan. The tracking script will not work on the free plan.