GA4 + Google Ads (gtag.js)

Send data to Google Analytics 4 and Google Ads with automatic Consent Mode v2 support.

Google Tag (gtag.js) is Google's unified tracking script for sending data to Google Analytics 4 (GA4), Google Ads, and Floodlight. It measures user behavior, tracks conversions, and powers Google's advertising ecosystem.

c15t initializes Google Tag with Consent Mode v2 defaults set to denied and automatically updates the consent state when users make choices. You don't need to configure Google Consent Mode yourself.

Info

Use GTM if your team needs centralized tag management in the GTM UI. Use gtag.js if you only need GA4/Google Ads directly in code. Don't run both for the same destination unless intentional, or you may duplicate events.

Choosing the right category:

  • Use category: 'measurement' for analytics-only tracking (GA4 events)
  • Use category: 'marketing' for advertising and conversion tracking (Google Ads)

Adding GA4 + Google Ads to c15t

Info

See the integration overview for how to pass scripts to your framework (JavaScript, React, or Next.js).

Types

GtagOptions

Loading…

Script

Loading…

Last modified on February 10, 2026