Embeddable badge
Powered by rd Relay
Drop a small script onto your product pages. For every product, we render a badge that reads the current lab results on file — always fresh, always accurate. No API keys, no build step.
This is the image-badge embed. Most retailers use the Lab Results text-link embed instead — it's the one generated from your dashboard's Copy embed button. Use this page if you specifically want the badge's visual style.
Preview
The badge fetches live data at view time. If the COA lapses, it flips to a neutral “not current” state.
Generic HTML snippet
Replace your-brand-slug and the barcode with your values.
<div data-rdlabs-badge data-slug="your-brand-slug" data-barcode="123456789012"></div>
<script src="https://rdrelay.com/embed.js" async></script>Shopify
Paste inside product.liquid or your product template.
<!-- Inside your Shopify product template -->
<div data-rdlabs-badge data-slug="your-brand-slug" data-barcode="{{ product.barcode }}"></div>
<script src="https://rdrelay.com/embed.js" async></script>How it works
- The script scans the DOM for
[data-rdlabs-badge]elements and renders an SVG badge for each one. - Each badge fetches
/badge/[slug]/[barcode]with a 60-second cache — fast to load, fresh enough. - If no current COA exists for that barcode, the badge shows a neutral state instead of a green check. Never misleads.
- Badge renders are logged against your brand and appear in your lab-results view export, tagged
badge_render. They are not included in the dashboard's scan totals, which count COA lookups only.