You have a launch to manage, and you need that "Featured on Product Hunt" badge on your site immediately. You don't have time to wrestle with heavy scripts or third-party tools. Here are the raw, lightweight HTML snippets for the Featured Badge and Upvote Counter to copy-paste directly into your code.
The official Product Hunt badge is a dynamic SVG image wrapped in an anchor link. It updates your upvote count in real-time without requiring heavy JavaScript or external scripts.
Key Takeaways:- Benchmark: Place the badge above the fold for the first 24 hours to maximize click-throughs. Hero sections typically drive the highest engagement.
- Rule: Use the featured.svg endpoint for the standard badge; it auto-updates with your upvote count.
- Warning: Avoid third-party JS widgets if possible; they can slow down your site. Stick to the official SVG to avoid rendering blocking.
How to use this swipe file: Replace the capitalized placeholders in the code below with your specific launch details.
Replace YOUR_POST_ID (numeric) and YOUR_POST_SLUG (text) in the snippets below.
1. The Standard "Featured" Badge (Dynamic Upvote Count)Best for: Hero sections, Footers, and Launch Day banners.Light Mode (White Background):<a href="https://www.producthunt.com/posts/YOUR_POST_SLUG?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-YOUR_POST_SLUG" target="_blank">
<img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=YOUR_POST_ID&theme=light" alt="Your Product Name - Your Tagline | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" />
</a>
Dark Mode (Dark Background):<a href="https://www.producthunt.com/posts/YOUR_POST_SLUG?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-YOUR_POST_SLUG" target="_blank">
<img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=YOUR_POST_ID&theme=dark" alt="Your Product Name - Your Tagline | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" />
</a>
2. The "Top Post" BadgeBest for: Social proof after you have secured a Top 1–5 spot.<a href="https://www.producthunt.com/posts/YOUR_POST_SLUG?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-YOUR_POST_SLUG" target="_blank">
<img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=YOUR_POST_ID&theme=light&period=daily" alt="Your Product Name - Your Tagline | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" />
</a>
3. Finding Your Post IDIf you don't know your numeric Post ID, these codes won't work.- Go to your Product Hunt launch page.
- Click the "Embed" button (often found under the share menu or by inspecting the URL in your dashboard).
- Look for the code snippet provided by Product Hunt. Inside it, find post_id=XXXXXX. That number is your ID.
Why bother adding the badge? It's about trust transfer.
The Math:- Scenario: You have 1,000 unique visitors on Launch Day.
- CTR (Above Fold): If the badge is in the Hero, expect a 2–5% Click-Through Rate. That is 20–50 visitors clicking through to Product Hunt to support you.
- CTR (Footer): If buried in the footer, CTR drops to 0.1–0.5%. That is only 1–5 clicks.
Conversion Impact:General data suggests that trust badges (like "As Seen On" or "Featured") can increase on-page conversion rates by
20–30%. While the PH badge is specific to tech, the psychological effect of social proof remains consistent.