Use Cases
E-commerce Stores Track product views, cart additions, and purchases. See which Meta or Google ads drive sales. Lead Generation Capture form submissions and attribute leads back to campaigns. Track demo requests and newsletter signups. Portfolios & Agency Sites Track visitor behavior, traffic sources, and contact form conversions.Before You Start
- You have a DATALYR account
- You’ve created a workspace
- You have Editor access to your Webflow project
Step 1: Get Your Tracking Code
- Log in to your DATALYR dashboard
- Go to Settings → Tracking
- Copy your tracking script:
Step 2: Add to Webflow
- Open your Webflow project
- Click the Settings icon (gear) in the left sidebar
- Go to the Custom Code tab
- Scroll to Head Code section
- Paste your DATALYR tracking script
- Click Save Changes
Step 3: Publish Your Site
Your tracking script is only added to the published site, not the Designer preview.- Click Publish in the top right
- Select your domain
- Click Publish to selected domains
Step 4: Verify Tracking Works
- Visit your published Webflow site in a new browser tab
- Go back to your DATALYR dashboard
- Click Events in the sidebar
- You should see a
page_viewevent within 10 seconds
What Gets Tracked Automatically
Once installed, DATALYR automatically captures:- Page views on every page
- Visitor IDs (persistent across sessions)
- UTM parameters from ad campaigns
- Ad click IDs (fbclid, gclid, ttclid)
- Referrer and traffic source
- Device and browser information
Track Webflow Form Submissions
To track form submissions as conversion events, add this code to your form’s success state:- Select your form in the Webflow Designer
- Go to Form Settings
- Add this to Success Message (use an Embed element):
'Contact Form' with your actual form name.
Track E-commerce Events (Webflow Ecommerce)
If you’re using Webflow Ecommerce, track purchases:- Go to your Order Confirmation page
- Add an Embed element
- Paste this code:
Troubleshooting
Not seeing events? Check that:- Your tracking script is in the Head Code section (not Footer Code)
- You’ve published your site (tracking doesn’t work in Designer preview)
- Your workspace ID is correct
- Ad blockers are disabled
Next Steps
Verify Tracking
Confirm events are coming through
Track Custom Events
Track button clicks and interactions
Connect Integrations
Link Stripe, Meta Ads, Google Ads
View Your Dashboard
See your tracking data