Custom shop Snippet
Add Garanify to a custom shop
Last updated 18 November 2026
In short
For shops without a plugin, a snippet adds the notice on the legal guarantee: one line of code before the end of body. It detects product page, cart and checkout by itself and shows the official graphic in the language of the page. The GARAN label comes from your details.
Step by step
-
1. Add the line
Add the script line before the end of body on all pages.
-
2. Check product data
Make sure product pages output JSON-LD of type Product, or add placeholders.
-
3. Check
Open product page, cart and checkout.
How the snippet works
The snippet is a JavaScript file. It inserts the official notice graphic and, where details match, the GARAN label. It sets no cookies, uses no local storage and sends no analytics. Rendering happens in a Shadow DOM, so your CSS stays untouched.
Add it
Add this line before the closing </body> on all pages:
<script src="https://SNIPPET-ADDRESS/garanify.min.js" defer data-lang="auto" data-places="product,cart,checkout"></script>
What the snippet detects
| Page | How |
|---|---|
| Product page | structured data JSON-LD of type Product, or og:type=product |
| Cart and checkout | the address, such as /cart or /checkout |
The notice appears before the buy or order button. If a page is not detected, add a placeholder, see Place the notice.
Check
Open a product page, the cart and checkout. The notice appears in full and in colour. In the browser console, window.Garanify.config shows what the snippet detected.
Garanify implements the display requirements of Implementing Regulation (EU) 2025/1960. It is not legal advice.
Related questions
Do I need a cookie notice for the snippet?
The snippet sets no cookies. Loading it from another address does send the visitor’s IP address to that server. Mention it in your privacy policy.
Does it work with single-page shops?
Yes. The snippet watches the page and inserts the notice again after navigation.
What if my shop has a Content Security Policy?
Allow the snippet’s address in script-src, img-src, font-src and connect-src.
Sources
Was this article helpful?
What was missing? Send us a short note and we will add it to the article. Send feedback by email
Your choice is not stored or sent anywhere.
Thank you for your feedback. What was missing? Send us a short note and we will add it to the article. Send feedback by email