Install on WordPress
Add Graytower to a WordPress site with a header plugin or a child theme.
Updated 2026-11-13
Copy your snippet from Website → Settings → Tracking in Graytower, then use one of the methods below.
Option 1: Use a header code plugin (recommended)
This works with any theme and survives theme updates.
- In WordPress, go to Plugins → Add New and install a plugin that adds code to your site's header, such as WPCode (formerly "Insert Headers and Footers").
- Open the plugin's header and footer settings. In WPCode, this is Code Snippets → Header & Footer.
- Paste your Graytower snippet into the Header box.
- Save.
Option 2: Edit your theme
Use this only if you are comfortable editing theme files. Use a child theme, or your change can be lost when the theme updates.
- Go to Appearance → Theme File Editor and select your child theme.
- Open
header.php. - Paste your snippet just before
</head>. - Select Update File.
Block themes may not have a header.php. Use Option 1 instead.
Check it's working
- If you use a caching plugin or host-level cache, clear it so visitors get the updated page.
- Open your live site in a new browser tab.
- In Graytower, open Website → Settings → Tracking and look for Receiving events. See Verify tracking.