Skip to main content

Documentation Index

Fetch the complete documentation index at: https://revlytics.co/docs/llms.txt

Use this file to discover all available pages before exploring further.

Option 1: Theme header

Add the script to your theme’s header.php file, just before the closing </head> tag:
header.php
<script defer data-site="YOUR_SITE_ID" src="https://revlytics.co/script.js"></script>
</head>

Option 2: Functions.php

Add this to your theme’s functions.php:
functions.php
function revlytics_tracking_script() {
    echo '<script defer data-site="YOUR_SITE_ID" src="https://revlytics.co/script.js"></script>';
}
add_action('wp_head', 'revlytics_tracking_script');

Option 3: Plugin (Insert Headers and Footers)

  1. Install the Insert Headers and Footers plugin
  2. Go to Settings → Insert Headers and Footers
  3. Paste the script tag in the Scripts in Header section:
<script defer data-site="YOUR_SITE_ID" src="https://revlytics.co/script.js"></script>
  1. Save
Option 3 is recommended for non-developers as it survives theme updates.