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 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.
!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" });
<!-- on login / on landing from an email -->
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.
[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.
jq("consent", true)3. Track conversions
Add a Custom HTML tag on your purchase trigger using your data-layer variables.
<!-- on your login / email-landing trigger -->
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.