WordPress

Add DataSaaS analytics to your WordPress site. You can use a plugin (recommended) or edit your theme files directly.

Method 1: Plugin (Recommended)

Install the free Insert Headers and Footers plugin by WPCode. Go to Plugins → Add New, search for "WPCode", and click Install Now then Activate. Once activated, go to Code Snippets → Header & Footer and paste the following script in the Header section:

<script
  defer
  data-website-id="ds_YOUR_WEBSITE_ID"
  data-domain="yourdomain.com"
  src="https://datasaas.co/js/script.min.js"
></script>

Method 2: Manual (header.php)

Go to Appearance → Theme Editor → header.php and paste the following script before the closing </head> tag:

<!-- DataSaaS Analytics -->
<script
  defer
  data-website-id="ds_YOUR_WEBSITE_ID"
  data-domain="yourdomain.com"
  src="https://datasaas.co/js/script.min.js"
></script>
</head>

Verify

Visit your website, then open the DataSaaS dashboard. You should see your visit appear within a few seconds.