Conversion APIs
Server side tagging
Serve the ThoughtMetric pixel from your own domain for more accurate tracking.
Server-side tagging enables the ThoughtMetric pixel to load from your website's domain (for example, tm.mysite.com) instead of thoughtmetric.io.
Benefits of server-side tagging
Server-side tagging improves ThoughtMetric's ability to accurately track users and connect all their touchpoints by getting around ad blockers, iOS 14, and Safari ITP. It delivers the ThoughtMetric tracking pixel to your store through your own first-party domain name, so that our code looks like a normal part of your store. This prevents ad blockers from blocking our tracking.
Roughly 30% of all users currently block tracking with an ad blocker, and an even higher percentage use iOS and Safari, so this feature improves data quality drastically.
Shopify stores
If your store is on Shopify, there's nothing to set up. The ThoughtMetric Shopify app already serves the pixel through your store's own domain, and the Tracking Domain page shows Automatically Configured for Shopify.
Set up server-side tagging
Follow these steps for WooCommerce, BigCommerce, Magento, Google Tag Manager and custom HTML stores. Server-side tagging is available on paid plans. During a free trial, the setup button is disabled.
-
Start the setup
Go to Configure → Tracking Domain and click Start Set Up.
-
Confirm your store's domain
ThoughtMetric tries to detect your store's domain from recent tracking data. If it can't, it asks you to enter it. Enter the domain without
https://or any subdomain. For example, if your store ishttps://www.mystore.com, entermystore.com. Click Continue.
-
Note your custom domain and IP address
The page now shows Your custom domain and Your custom ip address. You'll need both for the next step.
-
Set up the DNS record
Add a DNS A record that points your custom domain to your custom IP address. This forwards all traffic to the subdomain to ThoughtMetric, while it still appears to browsers and ad blockers as a built-in part of your site.
If you set up this DNS entry through Cloudflare, make sure to disable the "proxy through cloudflare" setting for this entry.
If you need help adding the A record, here are instructions for some popular domain providers:
-
Wait until your custom domain is ready
Use a DNS testing tool like DNS Checker to confirm that your custom domain resolves to your custom IP. Once it does, ThoughtMetric sets up a security certificate for your domain. This usually takes a couple of hours.
Your domain is ready when
https://<your custom domain>/tmpixel.min.jsloads in your browser.Don't update your tracking code until your domain is ready. If the tracking code points to a domain that isn't working yet, ThoughtMetric stops tracking your store.
-
Update your existing tracking code
Head to the Tracking Code page. Now that the custom domain is set up for your store, the tracking code in the setup instructions uses your custom domain and is marked Server Side Tagging Enabled. Go through the tracking code setup instructions again and replace the old ThoughtMetric tracking code on your site with the code in the instructions. On Magento, the instructions show you where to enter your custom domain in the extension's settings instead.
Troubleshooting
- It can take up to 30 minutes for DNS settings to propagate, so you may simply need to wait and check again later.
- Some DNS systems only want the subdomain entered in the "host name" field. For example, if your custom domain is
abc123.mystore.com, enter onlyabc123in the "host name" field. - Keep the DNS record in place for as long as you use ThoughtMetric. If it's removed or changed, tracking for your store stops.
If you cancel and resubscribe
Your custom domain is removed when you cancel your subscription. If you subscribe again, set up server-side tagging from the start. You'll get a new custom domain and IP address, so update your DNS record and your tracking code too.