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)
- Install a plugin like WPCode or Insert Headers and Footers.
- Open the plugin's settings and find the Header / <head> field.
- 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
- Go to Appearance → Theme File Editor.
- Open
header.phpand paste the snippet just before</head>. - 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.