GuidesWeb

WordPress analytics, cookieless and EU-hosted

Cookieless analytics for WordPress in about five minutes, no code required.

Privytics is cookieless, EU-hosted analytics for WordPress. You add it by pasting one snippet into a free plugin, so there is no coding and no theme files to touch. It works with any theme or page builder, and your page views start counting the moment you save. The whole thing takes about five minutes.

Why WordPress teams use Privytics

No coding, works with any theme

You paste one snippet into a free plugin. It does not matter whether you use a classic theme, a block theme, or a builder like Elementor or Divi. There is nothing to set up in your theme and no files to edit.

Cookieless, so a simpler banner story

Privytics sets no tracking cookies. It counts visitors with a daily-changing anonymous fingerprint instead of a stored id, so there are no analytics cookies to list in a cookie banner. Whether your site still needs a banner depends on your other tools, but Privytics adds none.

Installs in minutes, removes just as easily

The whole setup is one snippet in one box, so it takes a few minutes. To undo it, you just delete the snippet. There are no database changes and nothing left behind.

Running a shop? Track sales too

If you sell with WooCommerce and want orders and revenue, follow the Privytics WooCommerce guide. It adds sales tracking on top of the page views you set up here.

Set it up

About five minutes, on the free plan, without a credit card.

  1. Install a free plugin

    In your WordPress dashboard, go to Plugins, then Add New Plugin. Search for WPCode, then click Install Now and Activate. WPCode is free and lets you add code to your whole site from one box, so you never have to open a theme file. Any header-and-footer code plugin works the same way; these steps use WPCode.

    Plugins  >  Add New Plugin  >  search "WPCode"  >  Install  >  Activate
  2. Paste the snippet and save

    In the left menu open WPCode, then Header & Footer. Paste the snippet below into the Header box and click Save Changes. You do not need to understand the code, just copy it exactly. The one thing to change is YOUR_CLIENT_ID: replace it with the client id from your Privytics dashboard, keeping the quote marks.

    <script>
      window.op=window.op||function(){var n=[];return new Proxy(function(){arguments.length&&n.push([].slice.call(arguments))},{get:function(t,r){return"q"===r?n:function(){n.push([r].concat([].slice.call(arguments)))}} ,has:function(t,r){return"q"===r}}) }();
      window.op('init', {
        apiUrl: 'https://api.privytics.com',
        clientId: 'YOUR_CLIENT_ID',
        trackScreenViews: true,
        trackOutgoingLinks: true,
      });
    </script>
    <script src="https://privytics.com/op1.js" defer async></script>
  3. Check that it is working

    That is the whole setup. Open your website and click through a page or two, then open your Privytics dashboard and look at the Realtime view: your visits show up within a few seconds, and page views keep counting on their own from now on. One tip: if your site uses a caching plugin, clear its cache once so the snippet is live for every visitor.

    Your site  >  click through a few pages
    Privytics dashboard  >  Realtime  >  watch your visits appear

Questions

Do I need a developer or to edit any files?

No. Install a free plugin like WPCode, paste the snippet into its Header box, and save. Nothing touches your theme files. If you would rather add it in code, a developer can put the same two tags into a child theme's functions.php using the wp_head hook, but that is optional and most sites do not need it.

Does Privytics set cookies or need a cookie banner?

Privytics is cookieless. It counts visitors with a daily-changing anonymous fingerprint rather than a stored id, so it sets no tracking cookies and there are none to list in a banner. Whether your site still needs a banner depends on your other tools, but Privytics itself adds none.

I pasted the snippet but see no data. What is wrong?

The usual cause is caching. If you use a caching plugin such as WP Super Cache, W3 Total Cache or LiteSpeed, or a CDN like Cloudflare, clear the cache and reload. Then check that you replaced YOUR_CLIENT_ID with your real client id, and that you pasted the snippet into the Header box (not Footer).

Can I track clicks, events, or WooCommerce sales?

Page views track automatically. To record a specific action like a signup, call window.op('track', 'signup') from a Custom HTML block on the page where it happens, for example a thank-you page. For shop orders and revenue, follow the Privytics WooCommerce guide. For most sites, the automatic page views are all you need.