InstallWordPress

WordPress

Lynq has no plugin; the tag goes into the <head> like any other snippet.

With a snippet plugin

Plugins such as WPCode or Insert Headers and Footers have a “header” box. Paste the tag there and save:

<script defer src="https://lynq.byharsh.com/js/lynq.js" data-site="your-site.com" data-vitals></script>

In your theme

If you maintain a child theme, add it through the wp_head hook in functions.php:

functions.php
add_action( 'wp_head', function () {
  echo '<script defer src="https://lynq.byharsh.com/js/lynq.js" data-site="your-site.com" data-vitals></script>';
} );

Use a child theme so a theme update does not remove it.

Logged-in editors

Lynq counts every pageview it receives, including yours while you edit. To leave your own visits out, add your IP address to the exclusions in site settings.