Integration
Add Revenue Analytics to WordPress
Drop a single tracking script into your WordPress site and start seeing which traffic sources drive paying visitors. No plugin bloat, no PHP dependencies, no performance impact.
Start free trialDataSaaS tracking live on a WordPress site showing real-time pageviews, traffic sources, and geographic visitor data alongside WooCommerce revenue
How to set up
- 1
Paste the script in your theme header
Go to Appearance > Theme Editor (or use your child theme) and paste the DataSaaS tracking script into your header.php file, just before the closing </head> tag.
<!-- Add to header.php before </head> --> <script defer data-website-id="ds_abc123def456" data-domain="yourdomain.com" src="https://yourdomain.com/js/script.js" ></script> - 2
Or use the Insert Headers and Footers plugin
If you prefer not to edit theme files, install the free Insert Headers and Footers plugin (by WPCode). Go to Code Snippets > Header & Footer, paste the script tag into the Header section, and save. This survives theme updates.
- 3
Verify tracking in your dashboard
Visit your WordPress site and navigate between a few pages. Open your DataSaaS dashboard and confirm that pageviews appear in real time. The script tracks all page loads including custom post types, WooCommerce product pages, and archive pages.
What you get
- Works with any WordPress theme — classic, block, or page builder (Elementor, Divi, Beaver Builder)
- Tracks WooCommerce product pages, cart, and checkout for e-commerce revenue attribution
- No WordPress plugin required — a single script tag with zero PHP dependencies
- Survives theme updates when added via Insert Headers and Footers plugin or child theme
- Cookieless mode available to remove consent banners without sacrificing accuracy
Frequently asked questions
Do I need a WordPress plugin to use DataSaaS?
No. DataSaaS is a single script tag that you paste into your theme header or add via the free Insert Headers and Footers plugin. There is no WordPress-specific plugin to install, no PHP code to write, and no database tables added to your WordPress installation.
Does DataSaaS work with WooCommerce?
Yes. The tracking script works on all WordPress pages including WooCommerce product pages, cart, and checkout. For revenue attribution, connect Stripe (or Paddle) in DataSaaS settings and pass the visitor ID in your checkout flow to attribute every sale to its traffic source.
Will the script slow down my WordPress site?
No. The DataSaaS script is 4.8KB with zero external dependencies and loads asynchronously with the defer attribute. It has no measurable impact on page load speed, Core Web Vitals, or your WordPress performance scores.