1. Create the signed slot
In Dashboard → Products, create a recommendation slot using the final public URL of the WordPress page you plan to edit.
Keep your real token private until you publish it. The template uses YOUR_SLOT_TOKEN as a visible placeholder. Your dashboard generates the only token Relay will verify.
2. Add a Custom HTML block
- Open the chosen page in the WordPress block editor.
- Select the location where the recommendation belongs.
- Choose Add block → Custom HTML.
- Paste the complete snippet generated by Project Relay.
<div data-project-relay-slot="YOUR_SLOT_TOKEN"></div>
<script async
src="https://relaymyproject.com/widget/v1.js"
data-slot="YOUR_SLOT_TOKEN"></script>WordPress may show the block as code inside the editor. Use Preview to confirm the block remains present; the recommendation itself may stay empty until an approved relay is active.
3. Update and clear caches
Select Update or Publish, then purge any WordPress page cache, optimization plugin cache, or CDN cache. Open the exact page in a private window and confirm it is publicly reachable over HTTPS.
Run “Test live installation”
Return to the slot in Relay and run the test. Relay checks only the public page and signed token; it never signs into WordPress or modifies your content.
Troubleshooting
- Use a Custom HTML block, not a Code block that displays markup as text.
- Check that a security or optimization plugin did not remove the script tag.
- Purge WordPress, host, and CDN caches after every snippet change.
- Confirm both token values are complete and identical.
- If your hosting plan removes custom scripts, use an approved site-code feature or a host page that permits JavaScript.
Want help with the block?
Relay can guide you through the installation, but you remain the only person signing into and publishing on your WordPress site.
Get founding access →Request guided installation