--- title: "Install the SDK" slug: "install-the-sdk" updated: 2026-07-21T13:09:19Z published: 2026-07-21T13:09:19Z canonical: "support.jacquard.com/install-the-sdk" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.jacquard.com/llms.txt > Use this file to discover all available pages before exploring further. # Install the SDK There are two ways to install the Jacquard SDK: paste the snippet directly into your site, or deploy it through Google Tag Manager. Once installed, wire up identify, consent and measure calls — see the [SDK guide](/docs/install-the-sdk#) for the full API. If you manage more than one tag, make sure the snippet below uses the tag id you want to install for. Replace `JQT-XXXXXXXX` with your tag id from the Tags section of the platform. ## Option 1 — Install directly Paste this snippet high in your site’s `<head>`. Then wire up identify, consent and measure calls — see the [full guide](/docs/install-the-sdk#). ```plaintext !function(w,d,s,u){if(w.jq)return;var q=function(){q.q.push(arguments)};q.q=[]; w.jq=q;var j=d.createElement(s);j.async=1;j.src=u; var f=d.getElementsByTagName(s)[0];f.parentNode.insertBefore(j,f) }(window,document,"script","https://cdn.jacquard.com/jqrd-sdk.min.js"); jq("init", { tagId: "JQT-acme-web" }); jq("identify", ""); jq("consent", true);                  // from their CMP jq("measure", "purchase", { value: 129.99, currency: "GBP", order_id: "ORD-123" }); ``` ## Option 2 — Google Tag Manager ### 1. Load + init Create a Custom HTML tag with this content and fire it on the *Initialization — All Pages* trigger. ```plaintext [install snippet](#install) ``` ### 2. Consent If you use a consent manager, add a Custom HTML tag fired by your CMP’s consent-granted event. Skip this tag and pass `consent: "granted"` in init if GTM consent settings already gate the load tag. ```plaintext jq("consent", true) ``` ### 3. Track conversions Add a Custom HTML tag on your purchase trigger using your data-layer variables. ```plaintext jq("identify", {{User ID}}); jq("measure", "purchase", {  value: {{Transaction Value}},  currency: {{Currency}},  order_id: {{Transaction ID}}, }); ``` Custom HTML tags must be allowed in the customer’s GTM container, and GTM preview mode sends real conversions unless `environment` points at a test stage.