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.
- 1Install a header snippet plugin such as WPCode or Insert Headers and Footers.
- 2Open its settings and find the Header section.
- 3Paste 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.