# Install with Google Tag Manager Source: https://www.luriart.com/docs/install/google-tag-manager Plain text: https://www.luriart.com/docs/install/google-tag-manager.txt Load Luria from a Custom HTML tag on All Pages, and fire the conversion from a second tag on your thank-you trigger. Time needed: about 8 minutes. ## What you'll need * Your Luria tag, with your site ID already in it. You get it during onboarding, or email [hello@luriart.com](mailto:hello@luriart.com) and we will send it to you. The dashboard does not show the site ID yet. * Publish rights on the Google Tag Manager container that runs on your site. * The URL path of your thank-you or confirmation page. **Note:** Google Tag Manager loads after your page has started rendering, so a variant lands a beat later and visitors may glimpse the original text first. If you can paste into your site's `` yourself, use [the script install](/install/script). Use Tag Manager when it is the only access you have. ### Step 1: Create the Luria tag In Tag Manager, go to Tags, then New, then Tag Configuration, then Custom HTML. Paste this, with your own site ID in place of `YOUR_SITE_ID`: ```html ``` Leave "Support document.write" unchecked. Name the tag "Luria". **Warning:** Luria reads your site ID off the tag itself. If you retype the ID or wrap the tag in other markup, nothing loads and your site is untouched. [Screenshot: Google Tag Manager Custom HTML tag configuration with the Luria script pasted in and the All Pages trigger selected] ### Step 2: Trigger it on All Pages Under Triggering, choose the built-in "All Pages" page view trigger, then save. Luria has to load on your landing pages and on your confirmation page, so anything narrower will break attribution. ### Step 3: Create the conversion tag Add a second Custom HTML tag with this in it: ```html ``` Change the goal name and value to match what happened: `window.luria.convert("purchase", 129.00)` for a sale, `window.luria.convert("lead")` for a form, `window.luria.convert("booked_call")` for a booking. If the order value is in a data layer variable, pass it instead of a fixed number. The retry loop matters here. The Luria tag loads asynchronously, so `window.luria` usually appears a moment after the conversion tag fires. Tag sequencing alone does not close that gap. ### Step 4: Trigger it on the thank-you page only Create a Page View trigger set to fire on "Some Page Views", with Page Path contains your confirmation path, for example `/thank-you`. Attach it to the conversion tag from step 3, then submit and publish the container. If your checkout pushes a purchase event into the data layer instead of loading a new page, use a Custom Event trigger on that event name. ## Verify it worked 1. Use Preview mode to confirm both tags fire: the Luria tag on any page, the conversion tag on the thank-you page only. 2. Publish the container, then open your live site in a private window with ad blockers off. 3. Open DevTools, go to Network, filter for `luriart.com`. You should see calls to `/api/patches` and `/api/events`, and `/api/consent` the first time. 4. In the Console, type `window.luria`. It should return an object, not `undefined`. 5. Run one real test conversion, then open the Customers tab in your dashboard. The converted session appears there. [Screenshot: Luria dashboard Customers tab listing converted sessions with source, first seen and value] Full checklist: [Verify your install](/install/verify). ## Common failures **The tag fires in Preview but nothing reaches Luria** The container was never published, or the Luria tag has no site ID in it and the snippet stops immediately. **Console says window.luria is undefined on the thank-you page** The Luria tag is not on All Pages. Check its trigger. If it is on All Pages, then Global Privacy Control or Do Not Track is on in your test browser, in which case Luria collects nothing at all by design, or you declined Luria's consent banner in that browser; clear site data and choose Accept. **One order counted as two conversions** The conversion tag fired twice, usually a trigger that matches both the thank-you page and a reload of it, or a data layer event that pushes twice. Fire it once per order. **Luria is in Tag Manager and in the site head** Harmless. Luria ignores the second copy rather than counting twice. Keep the head one and delete the Tag Manager tag. **Visitors see the original text for a moment** Expected on a Tag Manager install, because Tag Manager loads later than the head. Move the tag into your `` to shorten it. ## Next steps * [Install the script directly](/install/script) * [Verify your install](/install/verify) * [JavaScript events reference](/reference/javascript-events) * [Snippet not firing](/troubleshooting/snippet-not-firing)