Shopify Integration
Protect your Shopify storefront from bots, credential stuffing, and automated abuse using a lightweight JavaScript agent injected via the Shopify ScriptTag API.
How it works
- ScriptTag injection — AuraGuardian registers a JavaScript agent via the Shopify ScriptTag Admin API. No theme edits required.
- Client-side fingerprinting — On each page load, the agent collects browser signals (UA, timezone, screen resolution, touch capability) and sends a verify request to the AuraGuardian cloud.
- Cloud decision — The cloud responds with
allow,challenge, orblockwithin ~50ms. - Enforcement — Challenges redirect through the hosted security check and return to the storefront. Blocks render a branded overlay. Legitimate visitors see nothing.
Installation
From the AuraGuardian Dashboard (recommended)
- Go to Console → Deployment → Shopify.
- Enter your Shopify store domain (e.g.
mystore.myshopify.com). - Authenticate via Shopify OAuth when prompted.
- The platform registers the ScriptTag automatically — no code required.
The agent starts in observe mode by default. Switch to enforce from the Console once you've reviewed the event log.
Manual installation (theme snippet)
If you prefer manual control or cannot use the automated flow:
- Download the Shopify agent bundle from Console → Deployment → Shopify.
- In Shopify Admin, go to Online Store → Themes → Edit Code.
- Under
Snippets, create a new file calledauraguardian.liquid. - Paste the provided snippet code.
- Open
theme.liquidand add{%raw%}{% render 'auraguardian' %}{%endraw%}just before</head>.
<!-- AuraGuardian Shopify Agent -->
<script
src="https://auraguardian.co/agent/shopify/v1.js"
data-ag-key="UP_LIVE_..."
defer
></script>
Configuration
All configuration is managed from the AuraGuardian Console:
| Setting | Description |
|---|---|
| Protection Mode | observe (log only) or enforce (active blocking) |
| Challenge Type | JavaScript challenge or visual CAPTCHA |
| Excluded Paths | Paths to skip (e.g. /admin, /checkout) |
| Rate Limits | Max requests per IP per minute before challenge |
Fail-open design
The Shopify agent is designed to never break your store. If the AuraGuardian cloud is unreachable (network timeout, maintenance, DNS issues), the agent silently fails open — your storefront and checkout continue to function normally.
- XHR timeout:
5000ms - On error: silent fail — no DOM changes, no console errors
- Checkout is never intercepted
- Shopify design mode (theme editor) is automatically excluded
Uninstallation
- Automated: Go to Shopify Admin → Apps → AuraGuardian → Remove. The ScriptTag is deleted automatically.
- Manual: Delete the
auraguardian.liquidsnippet and remove the{%raw%}{% render 'auraguardian' %}{%endraw%}line fromtheme.liquid.
The agent never modifies products, collections, checkout, or customer data. Removal is instant and leaves no residual code.