Add a feedback board to a Ghost site
Use an HTML card or code injection to add a feedback button that links to a public voting board.
Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.
Two places
An HTML card holds code for one post or page. Code injection holds code for the whole site, in a header box and a footer box.
Ghost takes scripts in a card or in code injection.
Pick the card for a first test, and injection once it works.
In the editor, type /html to add an HTML card, paste your code and click outside the card to save it. The code then lives on that post or page and nowhere else, which makes it the safest place to start.
Under Settings, Code injection has a Site Header box and a Site Footer box. Ghost places header code inside the head of every page, and footer code just before the closing body tag. Posts and pages also have their own injection boxes for code that belongs to one address.
The snippet
Three things make it work: the VoteFirst script, a button, and a call that links them. Put all three lines in one HTML card.
One script tag, one button and one call.
Your slug is the name in your board address.
Copy the slug and the key from the Share and Embed screen of your project. Anyone can read a key in the page source, and that is intended, since it only lets a page open the form and take votes. The script is a single file hosted by VoteFirst, so your theme holds none of it.
Publish the page and click the button. A form opens over the page, and a new suggestion lands in your dashboard as a card waiting for approval.
<script async src="https://app.votefirst.app/embed/votefirst.js" data-project="your-slug" data-key="your-key"></script>
<button id="suggest-btn">Feedback</button>
<script>VoteFirst.suggest({ trigger: '#suggest-btn' });</script>A page for it
Create a page called Feedback and paste the card there. Add that page to your site navigation so every reader can find it.
Give the button its own page, then link to that page.
One page is the easiest case to test and to undo.
With one page, the script runs nowhere else, so a mistake costs you a single address. The same link can go in a newsletter, a welcome email or a reply to a reader who asks for something.
Ghost sites are often blogs or newsletters, and readers ask for things in comments and replies. A link to one page turns each of those asks into a vote that you can count.
Site wide
Paste the script tag and the call into the Site Footer box, and place only the button in a card on any post or page.
Put the script in the footer to use the button anywhere.
The button has to be on the page before the call runs.
Ghost recommends putting JavaScript in the footer so it loads properly. Footer code runs after the content above it, so a button inside a post is already there when the call runs. The script then loads once for the whole site, and each post that needs the button gets one line.
Use this only after the page version works. A script in the footer touches every address on the site, so test a few posts and a tag page before you leave it on.
<script async src="https://app.votefirst.app/embed/votefirst.js" data-project="your-slug" data-key="your-key"></script>
<script>VoteFirst.suggest({ trigger: '#suggest-btn' });</script><button id="suggest-btn">Feedback</button>The board
The form takes an idea. The board lists every idea with its status and its votes, and a visitor can vote with no account.
Link the button to a public board people can vote on.
A new suggestion stays hidden until you approve it.
A form alone gathers ideas and hides them. A public board shows them back with a count beside each one, so a reader adds a vote and does not write the same idea again. Add a navigation item called Roadmap or Ideas that points to the board address from your dashboard.
Every new suggestion waits for your approval, so an open button cannot flood the board. You get an email about new ones no more than once a day, and two cards that repeat each other can be merged without losing a vote.
If it fails
Open the page as a reader, view the source and look for the script tag. If it is there, open the browser console for a message from VoteFirst.
A button that does nothing means the script did not run.
An origin that is not on the key's list is refused.
On the Share and Embed screen, add your site address to the allowed origins, with and without www if both open your site. Any other origin is refused with origin_not_allowed, so a copy of your snippet on a stranger's site does nothing.
A staging copy counts as one more origin. Add it for the test, then take it off again. Test in a private window, because your own browser may hold an older copy of the page.
What a Ghost site gains
A place for every ask
Readers reach one form from a menu link, a post or an email, and each idea becomes a card.
Votes you can count
A repeat adds a vote to the same card, so the order of the list shows what readers want most.
No theme edits
Everything lives in a card or in code injection, so a theme update does not remove it.
Add it in five steps
Start on one page, then widen it if you want the button elsewhere.
Create a project
Open a VoteFirst project on the Free plan and copy the slug and key from Share and Embed.
Add an HTML card
On a new page called Feedback, type /html and paste the three line snippet.
Publish and test
Click the button as a reader and send one suggestion.
Add the board link
Put the Feedback page and the board address in your site navigation.
Limit the key
Add your site address to the allowed origins of the key.
What to know before you set this up
- A Free board stops at 100 votes, and a taken back vote does not return its slot.
- Only a key's listed origins may load the form, so add every address you use.
- A button needs to be on the page before the call runs.
- Read Ghost's code injection page, since its settings can change.
What Ghost site owners ask
Does it work on a Ghost site with a members area?
The button works on any page a reader can open. If a post is limited to members, only members see its button.
Where does Ghost put header and footer code?
Header code goes inside the head of each page and footer code goes just before the closing body tag. Ghost advises putting scripts in the footer.
Do readers need an account to vote?
No. A new board takes votes from anyone, recognized by a cookie. You can switch on required sign in so each vote carries a person.
Does the script slow the site down?
It is one file with no dependencies, and the browser keeps it after the first visit. On the page version it loads only on the Feedback page.
Can the button run on several pages?
Yes. Paste the card on each page, or load the script once in the footer and place only the button.
Will a theme update remove it?
A card and the code injection boxes belong to your content and settings, not to the theme files, so an update leaves them in place.
How do new suggestions reach me?
Each one waits as a card until you approve it, and the email about new ones comes at most once a day.
Can the board live on my own domain?
Yes, on Free and Pro. Point a subdomain such as feedback.yoursite.com at the board and the public board opens there.
Is there a plugin for Ghost?
No. A card or code injection is the whole install, and nothing runs on your Ghost server.
What does it cost to try?
Free holds one project and 100 votes. Lite costs $9/mo and Pro costs $39/mo, and a 14 day trial of either paid plan takes no card.
More ways to add a board
More on buttons, the widget and the public roadmap.
A button for any website
Every option the popup takes.
The feedback widget
A board inside your page.
Make a public roadmap
Show readers what comes next.
Build your own board
What a weekend covers, and what it does not.
Design a custom board for your own process
Name your own columns and choose what visitors can do.
Readers shape posts and features
Free covers one project and 100 votes, and a 14 day trial of Lite or Pro takes no card.