Grona
WordPress

How to install Grona on WordPress

Add Grona to your WordPress site with a plugin or theme file. No coding experience required.

Under 2 minutes

Why you need the Grona snippet

Grona's research and competitive intelligence features work without any code on your site. You can analyze competitors, review traffic data, and get AI-powered recommendations right from the dashboard.

To make live changes on your website, like editing text, swapping images, adjusting styles, or running experiments, Grona needs your permission. Installing this snippet grants that permission and connects your site to Grona's optimization engine.

Live editing

Change text, images, and styles through AI chat.

Experiments

Run A/B tests and track results in real time.

Your choice of scope

Add to specific pages or your entire site.


Your Grona snippet

Copy this and paste it into your website's <head> section.

HTML
<link rel="preconnect" href="https://cdn.grona.ai">
<script src="https://cdn.grona.ai/workspaces/YOUR_WORKSPACE_ID/antiflicker.js" data-grona-af-bg="#ffffff"></script>
<script src="https://cdn.grona.ai/workspaces/YOUR_WORKSPACE_ID/main.js" async></script>

Preconnect: Speeds up loading by establishing an early connection to Grona's CDN.

Antiflicker script: Loads synchronously to prevent content flash before optimizations apply.

Main script: Powers Grona's optimization engine: live editing, experiments, and tracking.

Both methods above add Grona to every page on your site. If you want Grona on specific pages only, WPCode supports conditional logic to target individual pages or post types.

Replace YOUR_WORKSPACE_ID with the ID from your Grona dashboard. The complete snippet with your ID is available in Settings > Installation.


Step-by-step instructions

Follow these steps to add the Grona snippet to your WordPress site.

1

Option A: Use a header injection plugin (recommended)

Install the WPCode plugin (formerly "Insert Headers and Footers") from the WordPress plugin directory. Go to Plugins > Add New, search for "WPCode," and click Install, then Activate.

The plugin method is recommended because it survives theme updates. If you paste the snippet directly into your theme file, you'll need to re-add it every time you update or switch themes.

2

Add the snippet via WPCode

Go to Code Snippets > Header & Footer in your WordPress admin. Paste the Grona snippet into the "Header" section. Click Save Changes.

3

Option B: Edit your theme file directly

If you prefer not to use a plugin, go to Appearance > Theme File Editor. Select header.php from the file list on the right. Find the </head> closing tag and paste the Grona snippet directly above it. Click Update File.

Theme file edits are overwritten when you update your theme. If you use this method, you'll need to re-add the snippet after each theme update.


Verify your installation

Confirm the snippet is loading correctly.

  • 1
    Visit your WordPress site in a browser.
  • 2
    Open DevTools (right-click > Inspect > Network tab).
  • 3
    Filter by "grona" in the network requests.
  • 4
    Confirm you see antiflicker.js and main.js loading successfully (status 200).
  • 5
    Go to your Grona dashboard. Your site should appear as connected.

Ready to optimize your site?

Paste your URL to see what Grona can do. Free to start.