# Install with Google Tag Manager Source: https://docs.luriart.com/install/google-tag-manager Plain text: https://docs.luriart.com/install/google-tag-manager.txt Load the Luria snippet through a GTM Custom HTML tag on all pages, and know when a direct head install is the better choice. Time needed: about 6 minutes. ## What you'll need * A Luria account at [luriart.com/app](https://www.luriart.com/app) * Publish access to your Google Tag Manager container * Your Luria Site ID (Step 1) **Warning:** A snippet pasted straight into your site's `` loads before anything else, which is what keeps visitors from seeing a flash of the original page before Luria's version. GTM loads Luria one step later, so flicker is more likely, especially on slow connections. If you can edit your head, use the [custom site guide](/install/custom-site) or your platform's guide instead. Use GTM when it's the only thing you have access to. ### Step 1: Copy your Site ID Sign in at [luriart.com/app](https://www.luriart.com/app) and open Settings > Install. Copy the snippet: ```html ``` [Screenshot: Luria dashboard Settings > Install page with the snippet ready to copy] ### Step 2: Create a Custom HTML tag 1. Open your container at tagmanager.google.com. 2. Go to Tags > New. 3. Name it `Luria`. 4. Click Tag Configuration > Custom HTML. 5. Paste the snippet into the HTML box. [Screenshot: GTM Custom HTML tag configuration with the Luria snippet pasted into the HTML field] ### Step 3: Trigger on all pages, as early as possible Under Triggering, pick **Initialization - All Pages**. If your container doesn't show that option, use **All Pages** (Page View). Initialization fires earlier, which is what you want. Click Save. [Screenshot: GTM trigger picker with Initialization - All Pages selected for the Luria tag] ### Step 4: Preview, then publish Click Preview, enter your site URL, and confirm the `Luria` tag shows under "Tags Fired" on the first page load. Then click Submit > Publish. Nothing goes live until you publish. A tag sitting in a draft workspace does nothing. [Screenshot: GTM Tag Assistant preview showing the Luria tag listed under Tags Fired] ### Step 5: Verify Open your site in a private window. In the Luria dashboard, look for the "Tracking live" indicator within about 60 seconds. Full checklist: [Verify your install](/install/verify-install). Conversions: Luria auto-detects URLs containing `/thank-you`, `/thank_you`, or `/orders/` on non-Shopify sites. For anything else, add a second Custom HTML tag fired on your confirmation page that calls `window.luria.convert("purchase", 129.00)` or `window.luria.convert("lead")`. Details in the [JavaScript events reference](/reference/javascript-events). On Shopify, skip this: purchases are counted by the app, not the snippet. ## Troubleshooting **The tag shows in Preview but not on the live site** You haven't published. Go to Submit > Publish and confirm the new version is live. **Consent Mode is blocking the tag** If your container uses Consent Mode or a consent banner, the Luria tag may wait for consent it doesn't need. Luria already honors Global Privacy Control and Do Not Track on its own and collects nothing for those visitors. In the tag's Advanced Settings > Consent Settings, set "No additional consent required" so it fires immediately. Read [Consent](/reference/consent) for the details. **The tag fires on the wrong trigger** Open the tag and confirm the trigger is Initialization - All Pages or All Pages. A trigger on a single click or a specific URL means Luria only loads sometimes, which looks like a broken install. **Pages flash the original content before changing** That's the GTM delay. Move to a direct head install if you can ([custom site guide](/install/custom-site)). If not, make sure the trigger is Initialization, not Page View or DOM Ready. **The snippet is also in my site's head** Pick one. Two copies can double-count. Remove the GTM tag if the head install is live. ## Next steps * [Verify your install](/install/verify-install) * [Set your goal](/train/goals) * [How to train Luria](/train/how-to-train)