Docs/Installation Guides

WordPress

Use a header snippet plugin or your theme header.

On WordPress, the cleanest path is a header-injection plugin so updates to your theme do not wipe the snippet.

  1. 1
    Install a header snippet plugin such as WPCode or Insert Headers and Footers.
  2. 2
    Open its settings and find the Header section.
  3. 3
    Paste the snippet and save.
Tracking snippet
<script
  defer
  data-key="lw_xxxxxxxx"
  src="https://localwrangler.com/track.js"
></script>
Prefer not to use a plugin? Add the snippet to your theme header.php just before the closing head tag, ideally in a child theme.