Retailer guide · COA & recall compliance for regulated wellness

Give your customers a Lab Results link that's always current.

Paste this snippet once on your product page. It shows the live certificate for that barcode, kept current by the brand — and if a product is ever recalled, the notice reaches every connected store carrying that barcode the same day. No re-uploading PDFs, nothing to keep track of. Free for retailers.

There are two ways to install it. Start with the one that renders on your own server, because a compliance link a shopper cannot see is the same as no compliance link at all — and a content blocker will hide anything drawn by an outside script.

Start here: the version your server renders

Unlike a PDF link you paste once — or a QR code frozen on last year's batch — this link updates itself. When the brand re-tests, every connected store shows the new COA the same day.

On Shopify, paste this into your product template once (Online Store → Customize → your product template → Add block → Custom Liquid). It covers your whole catalog, including products you add later, and it works with JavaScript switched off.

{%- assign v = product.selected_or_first_available_variant -%}
{%- assign url = v.metafields.custom.coa.value -%}
{%- if url == blank and v.barcode != blank -%}
  {%- assign url = 'https://rdrelay.com/c/' | append: v.barcode -%}
{%- endif -%}
{%- if url != blank -%}
  <a href="{{ url }}" target="_blank" rel="noopener"
     style="display:inline-flex;align-items:center;gap:6px;font-weight:600;color:#1F2A1C;text-decoration:none;">
    <span aria-hidden="true">&#8599;</span> Lab Results
  </a>
{%- endif -%}

It uses a custom.coametafield if you have one on the variant, and otherwise builds the link from the variant's barcode. Either way the certificate itself always comes from rd Relay, so it stays current on its own.

About metafields. You cannot paste a <script> into one — a metafield stores typed data, and that is the validation error you hit if you try. But storing the URL in a metafield and letting your theme render it is the strongest setup there is, and it is what we run in our own stores. The rule is about where scripts go, not about metafields being wrong.

If a product has several variants — a 4-pack and a single, an 8ct and a 30ct — each one has its own barcode and its own certificate. The snippet above is correct when the page loads; add a small inline swap so it follows the shopper when they change variant, or ask us for the full version we use on raddadalt.com.

Not on Shopify, or can't edit the theme?

Use the embed. In your Catalog, click Add to your website on a product, then Copy snippet. You get this, with the barcode already filled in:

<script src="https://rdrelay.com/embed.js" async></script>
<span data-rd-relay-labresults data-barcode="012345678905"></span>

It goes in a custom-HTML or code block — a plain text or data field will store the characters without running them.

One honest caveat, because it is the difference between a link and a link that is actually seen: the embed is drawn by a script from our domain, so a shopper running an ad or content blocker may never see it. We found this the hard way on our own storefront — the server-rendered products showed their link and the embed-only product did not, on the same page load. Use the embed to try it, or where you genuinely cannot edit a template; prefer the server-rendered version above for anything permanent.

Where the block lives, by platform

  • Shopify. Online Store → Customize → your product template → Add section/block → Custom Liquid.
  • WooCommerce / WordPress. A Custom HTML block on the product template, or a code-snippet plugin.
  • Wix. Add → Embed & Social → Embed HTML / Custom Code.
  • Squarespace. A Code block on the product page.
  • BigCommerce. The HTML / custom-content area of the product template.
  • Webflow. An Embed element on the product template.
  • Square Online. An Embed code section on the item page.
  • Custom-built site. Straight into your product page template.

No code at all

You do not need a developer to try this. Copy the plain link from Add to your websiteand paste it into the product's description as ordinary link text — type Lab Results, select it, click the link button, paste. It works on every platform, it is always visible because it is part of your own page, and it takes about thirty seconds.

The trade-off is that it is per product: you repeat it for each one, and a product added later will not have it until you do. Good for a first product; the template versions above are what you want once you are convinced.

The one requirement, whichever you pick

The barcode on your product has to match the barcode the brand registered on rd Relay — that is what the link resolves against. If a link lands on a page saying no certificate is on file, that mismatch is almost always why, and it is fixable in a minute: check the barcode field on the variant.

Not the one who installs code?

Send this page to your web person — the whole install is one paste. It's the same embed we run in our own Baton Rouge stores.

Brand or distributor? One barcode, one record, every store current.

For brands For distributors