Set up KiteTrack on a custom website
This guide is for any site that is not Shopify or WooCommerce: Webflow, Wix, Squarespace, a landing-page builder, a WordPress site without WooCommerce, or a site your developer built. It follows the seven steps on the Setup page in your dashboard.
On a custom site there is no app or plugin to install. You add one piece of code to your site yourself, and for a store, your site sends its shopping events to Google Tag Manager.
On an annual plan? Skip this guide. We do the full setup for you.
Before you start
- A way to add code to the
<head>of every page. Most builders have a custom code or code injection setting, and on some it needs a paid plan. - Lead gen: a "thank you" page that visitors see after they send your form. It needs its own web address, such as
https://yoursite.com/thank-you. - Ecommerce: a developer, or a platform that lets you add code to your product, cart, checkout and order confirmation pages. Step 4 explains what the code must do.
- A Google Tag Manager account, access to your domain's DNS, and the IDs of the platforms you advertise on.
- About 45 minutes, plus waiting time for DNS.
1. Choose your business type
Open Setup in your dashboard. Under What do you want to track? pick Ecommerce (you sell products online) or Lead gen (forms, calls and bookings). Under Where does your site run? pick Other / custom site. Click Continue.
You can change both answers later with Change. Your server, domain and IDs stay.
2. Connect your Google Tag Manager
- Open tagmanager.google.com → Admin → click + next to Container.
- Name it and choose Server as the target platform.
- Choose Manually provision tagging server and copy the Container Config.
- In KiteTrack, paste it into Server container configuration, and add Your web container ID (
GTM-…). - Pick Where are most of your customers?. This cannot be changed later.
- Click Connect.
Full walk-through: Create your Google Tag Manager containers.
3. Add your tracking domain
- Type a subdomain of your site under Your subdomain, such as
sst.yoursite.com, and click Continue. - Add the DNS records KiteTrack shows where your domain is managed. If there is a proxy option (Cloudflare's orange cloud), turn it off for these records.
- Click Check now.
DNS changes usually show within 30 minutes, but can take a few hours. We keep checking for you. Steps 4, 5 and 6 open as soon as the domain is added, so carry on. Full walk-through: Add your tracking subdomain.
4. Install on your site
Step 4 is called Install on your site. It shows your tracking domain and Your Google Tag Manager code.
- Copy the code with the copy button.
- Paste it into the
<head>of every page, as high as you can. - If your site already has a Google Tag Manager snippet, replace it with this code. Do not keep both.
- Remove any other Meta or TikTok pixel from your site: pixel code, a plugin or an app (more below).
- Publish your site.
- Click I've installed it.
Why remove other pixels? If you pick Meta or TikTok in step 5, your tracking files bring their pixels with them. Each browser event shares one event ID with its server copy, so Meta and TikTok count a purchase or lead once. A pixel from anywhere else sends its own copy with its own ID, and your purchases are counted twice.
This code loads Google Tag Manager from your own tracking domain (we call it Custom Loader), so ad blockers stop it less often.
The page says Custom Loader is off? Switch it on in Power-ups, then come back to step 4 for your code. Or use Google's standard code: in Google Tag Manager, open your web container and click your container ID (GTM-…) at the top. Paste the first snippet into the <head> and the second right after the opening <body> tag.
Where to paste the code on common builders:
- Webflow: Site settings → Custom code → Head code, then publish.
- Wix: Settings → Custom code (under Advanced) → Add Custom Code. Choose Head and All pages. Wix allows this only on a paid plan with a connected domain.
- Squarespace: the Code Injection settings, in the Header box. It is not available on every plan.
- WordPress: see Set up KiteTrack on WordPress.
- Hand-built site: add it to the template or layout file that every page shares.
Menu names change from time to time. If you cannot find the setting, search your builder's help for "add code to head".
Ecommerce: send your events
Skip this part for lead gen. Your lead files work from your thank-you pages and need no extra code.
For a store, your site tells Google Tag Manager what shoppers do by pushing events into the data layer. Your tracking files listen for these events, with these exact names:
| Event | Send it when |
|---|---|
view_item_list |
A collection or category page is viewed |
view_item |
A product page is viewed |
search |
A shopper searches your store |
add_to_cart |
A product is added to the cart |
remove_from_cart |
A product is removed from the cart |
view_cart |
The cart is viewed |
begin_checkout |
Checkout starts |
add_shipping_info |
Shipping details are entered |
add_payment_info |
Payment details are entered |
purchase |
The order confirmation page loads |
Page views are counted without any code. That includes a store built as a single-page app (React, Vue, Next.js, Nuxt and the like), where a new page opens without the browser reloading: Meta and TikTok get a page view each time the address changes, but not when only the # part changes. For GA4, keep Page changes based on browser history events on in your GA4 web stream (Admin > Data streams > your stream > Enhanced measurement > Page views > Show advanced settings). It is on by default, and it is what counts these pages in GA4.
You do not have to send every event. purchase matters most, then add_to_cart, begin_checkout and view_item.
Each event uses Google's standard GA4 ecommerce format:
- The details go in an
ecommerceobject:value,currencyanditems. - Each item has
item_id,item_name,priceandquantity. purchasemust also carrytransaction_id, the order ID.- For
search, put the search words inecommerce.search_term. - Push
{ ecommerce: null }before each event, so one event's products do not carry over to the next.
Customer details. On checkout and the order confirmation page, add a user_data object to the same push, with what the customer typed in. Meta, TikTok and Google then match more purchases to your ads. Use these names: email_address, phone_number, first_name, last_name, street, city, region, postal_code, country and customer_id. Leave out any you do not have. Write the phone number with its country code, and the country as a two-letter code such as US.
Your developer can use this as a pattern:
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({ ecommerce: null });
window.dataLayer.push({
event: 'purchase',
ecommerce: {
transaction_id: 'ORDER-1001',
value: 59.90,
currency: 'USD',
items: [{ item_id: 'SKU-123', item_name: 'Example product', price: 29.95, quantity: 2 }]
},
user_data: {
email_address: 'customer@example.com',
phone_number: '+15551234567',
first_name: 'Jane',
last_name: 'Doe',
city: 'Austin',
region: 'TX',
postal_code: '78701',
country: 'US',
customer_id: 'CUSTOMER-42'
}
});
Replace the sample values with the real order's values. Send purchase once per order: not again when the customer reloads the page.
If your platform does not let you add code to its checkout or order confirmation pages, it cannot send purchase. Talk to us before you go further.
5. Add the tracking files
- Under Where should we send your data?, pick your platforms and click Continue. Meta, Google Ads, GA4, TikTok, Microsoft Ads, Pinterest, Snapchat, LinkedIn, Reddit and Klaviyo are built into your files. Awin is set up by our team by hand.
- Lead gen only: the first page is Thank-you pages. Enter the full address of your form's thank-you page in Lead page 1 (up to three). If people book calls on your site, add the page they see after booking under Booking page 1 (optional).
- Fill in one page per platform, and click Next after each:
- Meta: Pixel ID and Conversions API token.
- GA4: Measurement ID (
G-…). - Google Ads, for a store: Conversion ID, Purchase conversion label, Begin checkout conversion label and Add to cart conversion label.
- Google Ads, for lead gen: Conversion ID, Lead conversion label, Contact conversion label, and Booking conversion label if you added a booking page.
- TikTok: Pixel ID and Events API token.
- Answer Do you use a consent banner?.
- Click Generate my files.
Which platforms you need. Pick at least one of Meta, GA4 or TikTok. Klaviyo, Microsoft Ads, Pinterest, Snapchat, LinkedIn and Reddit go alongside them, never alone. If you pick Google Ads, add GA4 too: your Google Ads conversions are sent from your GA4 events. For a store, your server file also includes Google Ads' Conversion Linker, which keeps the ad click so a purchase links back to your ad.
Gave a wrong ID or token? On the setup page, open step 5 and click Change an ID or token. Fill in only what changed; anything left blank stays as saved. Then download the files again, import them in Tag Manager with Merge → Overwrite conflicting, and publish.
Then click Download .zip, unzip it, and import server.json into your server container and web.json into your web container: Admin → Import Container, your workspace, Merge → Overwrite conflicting, Confirm. Do not publish yet. Full walk-through: Import your tracking files into GTM.
How a lead is counted. A lead is counted when a visitor opens one of your thank-you pages. A booking is counted on a booking thank-you page. A click on an email or phone link on your site counts as a contact by itself. So copy the thank-you address exactly as it shows in your browser, including www. if your site uses it. A form that only shows a "thanks" message, without opening a new page, is not counted: set it to send visitors to a thank-you page.
Have a consent banner? Your tags wait for the visitor's consent, as you told us. For a store, every tag in your web file waits until the visitor allows both analytics and ad cookies. Your banner has to pass that choice to Google Tag Manager through Google Consent Mode. Most consent tools have a Google Consent Mode setting: switch it on. Without it, your tags never fire. See Consent Mode and GDPR.
The first page a visitor lands on also needs to know when they say yes, so its page view (and the ad click id in its address) is not lost. Your files already listen for the events that Cookiebot, CookieYes, OneTrust, Usercentrics, Osano, Complianz, iubenda, Termly and Didomi send. With any other banner, have your developer add one line where the banner reports the visitor's choice:
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({ event: 'kitetrack_consent_update' });
6. Connect your ad accounts
Approve our access requests in Meta Business Manager and Google Ads, then click I've approved them. Usually ready within 1 business day. Full walk-through: Approve KiteTrack in Meta and Google Ads.
7. Send a test lead or purchase
This step opens when your domain is verified and steps 4, 5 and 6 are done. It is called Send a test lead or Send a test purchase.
- In Google Tag Manager, open your web and server containers and click Preview at the top right of both.
- Submit a test lead, or place a test order. In the debug window, check that the tags fire.
- Click Submit in both containers to publish them.
Keep the Setup page open. Each platform in the Test listener turns green when it receives your test purchase, or your test lead on a lead form. Full walk-through: Test your tracking setup.
What success looks like
- Step 3 shows Verified for your subdomain.
- Every platform in the Test listener shows a green check.
- The page shows Setup complete and takes you to Overview.
No green check after a test? The usual causes are a thank-you address that does not match exactly, a purchase event sent under another name or without transaction_id, a Google Tag Manager snippet still loading twice, or containers that are not published yet. A purchase that shows twice in Meta or TikTok almost always means another pixel is still on your site.
Go deeper
- Create your Google Tag Manager containers
- Add your tracking subdomain
- Find your Meta Pixel ID and Conversions API token
- Find your Google Ads conversion ID and label
- Find your GA4 Measurement ID
- Find your TikTok Pixel ID and access token
- Import your tracking files into GTM
- Approve KiteTrack in Meta and Google Ads
- Test your tracking setup
- Fix missing or duplicate purchases
Stuck anywhere? Click Get it done for me on the Setup page, or reply to any of our emails. It comes to a person.