Search documentation

Search titles, headings, and page summaries.

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.

This works with any theme and survives theme updates.

  1. 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").
  2. Open the plugin's header and footer settings. In WPCode, this is Code Snippets → Header & Footer.
  3. Paste your Graytower snippet into the Header box.
  4. 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.

  1. Go to Appearance → Theme File Editor and select your child theme.
  2. Open header.php.
  3. Paste your snippet just before </head>.
  4. Select Update File.

Block themes may not have a header.php. Use Option 1 instead.

Check it's working

  1. If you use a caching plugin or host-level cache, clear it so visitors get the updated page.
  2. Open your live site in a new browser tab.
  3. In Graytower, open Website → Settings → Tracking and look for Receiving events. See Verify tracking.