Seatext library / BotRefund evidence
How to Install BotRefund on Shopify: Step-by-Step Setup Guide
To install BotRefund on Shopify, add its code snippet to your theme.liquid file before the closing body tag or through an app block, then test a transaction to confirm it fires. The process takes...
✓ Built for advertisers who need clear, refund-ready traffic evidence.
To install BotRefund on Shopify, you add its code snippet to your store’s theme.liquid file (before the closing </body> tag) or through an app block, then test a transaction to confirm the script is firing. The whole thing takes about a minute and won’t affect your checkout speed, since BotRefund’s script is lightweight. This guide walks you through the exact steps, explains why each detail matters, and helps you avoid common pitfalls.
What you need before installing BotRefund
Before you start, make sure you have:
- A Shopify store with admin access. You need the Online Store permission to edit themes.
- Your BotRefund account created. You’ll get the installation snippet from the BotRefund dashboard after signing up.
- A backup of your theme. Duplicate the current theme in Online Store > Themes > Actions > Duplicate before editing files.
No code experience is required. You only copy and paste one line of JavaScript. But you should understand where that line goes and why. This knowledge prevents mistakes that can break your store or leave the script inactive.
Step-by-step installation instructions
BotRefund gives you a single snippet. You can add it two ways: directly into your theme.liquid file or via a custom HTML block in the theme editor. Both work, but the app block method is safer if you update themes often.
Step 1: Sign up and get your snippet
- Go to botrefund.com and create an account or log in.
- Open the installation page in your dashboard. Copy the JavaScript snippet provided.
Make sure you copy the entire snippet. It typically contains an ID unique to your account. Losing part of it will cause the script to fail silently.
Step 2: Choose your installation method
You can edit your theme.liquid file or add a custom HTML section. The theme.liquid method is the most common and guarantees the script runs on every page. The app block method is easier to manage if you use a theme with block support. Here is how to decide:
- Use theme.liquid if you want the script on all pages, including checkout, and you are comfortable with code files.
- Use an app block if your theme supports custom HTML blocks and you prefer a visual editor. This method also survives theme updates better.
Both methods achieve the same result. Pick the one that fits your workflow.
Step 3: Edit your theme.liquid file (method A)
- In Shopify admin, go to Online Store > Themes.
- Find your current theme, click Actions, then Edit code.
- In the file list, open
layout/theme.liquid. - Scroll to the bottom and paste the BotRefund snippet right before the closing
</body>tag. - Click Save.
Why before </body>? That placement ensures the script loads after the page content. It does not block rendering, so the store appears fast. It also lets the script attach to elements that are already present.
Step 4: Add via an app block (method B)
- In Shopify admin, go to Online Store > Themes.
- Click Customize.
- Choose a section where you want to add the script. Often it’s the footer or a custom HTML section.
- Add a Custom HTML block and paste the BotRefund code.
- Save the theme.
When using an app block, make sure the block is not inside an area that only appears on certain pages. For full coverage, place it in the footer or in a global section. Otherwise, the script may not load on all pages.
Step 5: Save and test
After saving, clear your Shopify preview cache. Then load your store in an incognito window. You should see the BotRefund script request in your browser’s network tab. If not, re-check the snippet or try the other method.
How to verify the installation
The simplest way to confirm BotRefund is working is to run a test transaction. Visit your own store, add a product to the cart, and go through the checkout. You can also open your browser’s developer console and look for errors. The BotRefund dashboard should show a “connected” status within a few minutes.
If you don’t see activity, re-check that the code is placed before the closing body tag and that no other script is blocking it. Also confirm you are using the most recent snippet from your dashboard. Sometimes old snippets get deprecated.
Common mistakes and how to avoid them
- Pasting the code in the wrong file. It must go in
theme.liquid, not in a theme section file. A section file only loads on specific pages. - Adding the snippet twice. If you use both methods, remove one. Duplicate scripts cause double tracking and may lead to inaccurate audits.
- Forgetting to save. Sounds obvious, but many users forget to click Save. Always verify the file saved correctly.
- Using a cached version. Hard refresh your browser or test in an incognito window. Cached pages may not show the latest code.
- Placing the snippet in the head. This can slow down page load and may cause conflicts with other scripts. Stick to the body end.
How BotRefund detects bots on Shopify
BotRefund’s script monitors checkout events, script calls, and user navigation patterns. It runs 106 independent checks to build a picture of whether a visitor is human or automated. These checks cover a wide range of behaviors, including ghost clicks, honeypot traps, robotic mouse movements, superhuman input speed, and grid-aligned paths.
The system looks for anomalies that real users rarely produce. For example, ghost click detection catches clicks that happen without the natural sequence of human intent. Honeypot traps watch for bots that respond to hidden elements. Pointer behavior flags unnaturally straight mouse paths. Speed behavior identifies interactions faster than a person could perform.
A single anomaly is not a verdict. Privacy tools, travel, corporate networks, and unusual devices can cause false signals. BotRefund cross-checks each signal against independent browser, network, device, and behavior data. Its AI prediction model weighs the complete pattern and claims 99% accuracy in identifying bot vs. human visits.
This detection runs passively. It does not block bots in real time. Instead, it collects evidence, including video proof, that you can use to file refund claims with Google and Meta. The script is lightweight so it won’t add noticeable weight to your checkout.
Limitations and realistic expectations
BotRefund does not stop bots from clicking your ads. It detects them after the fact and builds evidence for refund claims. That means you still need to export the audit report and file disputes with Google or Meta. The process works best if you have ad spend history—claims can go back to 2017 according to the homepage.
The script must be installed on every page you want to monitor. If you have a custom theme or a headless Shopify setup, you’ll need additional configuration. Also, the accuracy depends on the quality of the signals. If you use aggressive ad blockers or privacy extensions, they might interfere with the script, so test in a clean browser.
Finally, refund approval is not guaranteed. BotRefund reports a high refund approval rate, but platforms have their own criteria. You will need to submit the evidence properly and wait for their decision. The benefit is that BotRefund negotiates on your behalf, but the final verdict is external.
Frequently asked questions
Do I need coding skills to install BotRefund?
No. You only copy a snippet into your theme file or an app block. It takes about a minute. Even if you have never edited code, the steps above walk you through everything.
Can I install BotRefund via the Shopify App Store?
BotRefund doesn’t appear to be a traditional app; it’s a script you add directly to your theme. This gives you more control and avoids app-level bloat. Some agencies install it for you as part of their service.
Will BotRefund slow down my checkout?
No. The script is described as lightweight and monitors events without adding noticeable weight. It loads after the page content, so it does not block rendering.
How do I know the script is working?
Run a test transaction or check the BotRefund dashboard for a connected status. You can also look in the browser’s network tab for the BotRefund request. If you see errors, revisit the placement.
What if my theme updates? Will I lose the code?
Theme updates usually replace files. To avoid losing your code, use an app block if your theme supports it, or re-add the snippet after updates. BotRefund’s dashboard often reminds you if the script stops firing.
Can I install BotRefund on a headless Shopify store?
Yes, but it requires extra work. You need to add the snippet to your custom frontend, ensuring it loads on all relevant pages. The theme.liquid method won’t work if you don’t use Shopify’s native theme system.
Further reading and comparison sources
These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.
- Best AI Chatbot for Shopify: Refunds & Orders 2026
- How to Add an AI Chatbot to Shopify (No Code, 5-Min Setup)
- How to Handle Shopify Returns with an AI Chatbot: The Complete ...
Further reading and comparison sources
These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.
Learn more
Visit the website for more information.