Install Piqo on WordPress

Three paths: a header-injection plugin, a theme edit, or a tiny functions.php hook.

Option 1 — Header injection plugin (recommended)

  1. Install a plugin like WPCode or Insert Headers and Footers.
  2. Open the plugin's settings and find the Header / <head> field.
  3. Paste the snippet and save.
<script defer data-site="YOUR_SITE_ID" src="https://piqo.app/piqo.js"></script>

Option 2 — Edit your theme's header.php

  1. Go to Appearance → Theme File Editor.
  2. Open header.php and paste the snippet just before </head>.
  3. Save changes.

Option 3 — Hook into wp_head from functions.php

// functions.php
add_action('wp_head', function () {
  echo '<script defer data-site="YOUR_SITE_ID" src="https://piqo.app/piqo.js"></script>';
});
Theme updates wipe header.php edits. If you don't use a child theme, prefer Option 1 or Option 3.