Google Tag Manager for Wallet Tracking

GTM is the standard for marketing tag management. Now you can use it for wallet tracking too. Add wallet connection and on-chain conversion tracking to your existing GTM container — no code changes required.

Why Use GTM for Web3

No-Code Setup

Import a template, configure your project ID, and publish. No developer tickets, no deploy cycles.

Works with Existing Containers

Add the Web3 Trackers tag to the GTM container you already run. No separate snippet needed.

Familiar to Marketing Teams

If your team manages GTM for GA4 and ad pixels, they already know how to set this up.

Compatible with GA4

Runs side by side with Google Analytics. Push wallet events into GA4 as custom events for unified reporting.

How It Works

1

Add the Web3 Trackers Tag

Import the free GTM template into your container. It appears as a new tag type in your workspace.

2

Configure Your Project ID and Tracked Events

Enter your Web3 Trackers project ID and select which events to track — wallet connections, page views with UTMs, on-chain conversions.

3

Publish the Container

Hit publish. The tag auto-detects wallet connections from MetaMask, Phantom, WalletConnect, Coinbase Wallet, and any EIP-1193 compatible provider.

4

View Attributed Conversions

Open your Web3 Trackers dashboard. See which campaigns, channels, and UTMs drove each wallet connection and on-chain conversion.

Setup Guide

1. Create a GTM Account (if needed)

Go to tagmanager.google.com and create an account and container for your dApp domain. If you already have GTM installed, skip this step.

2. Get the Template

Download the Web3 Trackers GTM template from the GitHub repository. It's a .tpl file you import directly.

3. Import into GTM

In GTM, go to Templates → Tag Templates → Import. Upload the .tpl file. The Web3 Trackers tag type now appears when creating new tags.

4. Configure Variables

Create a new tag using the Web3 Trackers template. Enter your project ID (found in your dashboard settings) and select which wallet events to track.

5. Test in Preview Mode

Use GTM's Preview mode to verify the tag fires correctly. Connect a wallet on your site and confirm the event appears in the GTM debugger.

6. Publish

Once verified, publish your container. Wallet tracking is now live for all visitors.

What Gets Tracked

Event TypeDescriptionExample
Wallet ConnectUser connects a wallet to your dAppMetaMask connected on /swap page
Page View with UTMVisitor arrives with UTM parametersutm_source=twitter&utm_campaign=launch
On-Chain ConversionAttributed wallet performs a transactionSwap on Uniswap from KOL campaign wallet
Referral ClickUser clicks a tracked referral linkReferral from partner site with ref=partner1

GTM Template

The Web3 Trackers GTM template is open source and available on GitHub. Import it into any GTM container.

View on GitHub →

FAQs

Can I use GTM with Web3 Trackers?

Yes. Web3 Trackers provides a free GTM tag template that you import directly into your existing GTM container. It works alongside all your other tags — GA4, Google Ads, Meta Pixel, etc.

Does the GTM tag slow my site?

No. The Web3 Trackers tag is a lightweight async script (~4 KB gzipped) that loads after the page. It has no impact on Core Web Vitals or page load time.

Which wallets are supported?

The tag auto-detects all major browser wallets: MetaMask, Phantom, WalletConnect, Coinbase Wallet, Rainbow, Rabby, and any EIP-1193 compatible injected provider. Solana and TON wallets are also supported.

Do I need engineering help?

No. If you already manage a GTM container, you can set this up yourself in under 10 minutes. Import the template, configure your project ID, publish — done.

Can I use this with GA4 at the same time?

Absolutely. The Web3 Trackers tag runs in the same GTM container as your GA4 tag. They don't conflict. You can even push wallet events into GA4 as custom events for unified reporting.

Ready to automate your attribution?

Stop tracking manually. Web3 Trackers connects your campaigns to on-chain conversions automatically.