SaTracking
Events and dataNEWBeginner

Track GA4 sign-up, login, and share actions

Use `sign_up` when an account is created, `login` when a user has logged in, and `share` when content has actually been shared. A click on a sign-up or sha

Download for AI (.txt)

Measurement topic illustration · SaTracking

Audience and prerequisites

Instrument sign_up, login and share so each event fires only after the account or share action succeeds, then test consent and duplicates. You need clear application success signals for account creation, authentication, and content sharing. Skill: beginner. Reading time: six minutes.

1. Match each event to the completed action

Use sign_up when an account is created, login when a user has logged in, and share when content has actually been shared. A click on a sign-up or share button is only an attempt. Fire after the application confirms success so failed authentication or a canceled share is not counted.

The current reference lists optional method for sign_up and login; share can use optional method, content_type, and item_id. Use controlled values such as email or social, and only fields relevant to the report. Do not send an email address, username, OAuth token, or private content text.

Direct Google tag (gtag.js)

js
gtag('event', 'sign_up', { method: 'email' });
gtag('event', 'login', { method: 'password' });
gtag('event', 'share', {
  method: 'native_share',
  content_type: 'article',
  item_id: 'ARTICLE_123'
});

Call each event only after its corresponding success. Replace identifiers and methods with controlled values from your implementation.

GTM

For GTM, configure separate GA4 Event tags and triggers for account creation, successful login, and completed share. A generic dataLayer.push() may carry each success signal but does not send the event to GA4 without those tags. Do not duplicate direct gtag() calls.

2. Test each action independently

In Preview, verify correct event name, method and content values, and one tag firing. Test invalid password, duplicate account, and canceled share; none should create the success event. Confirm receipt in the intended GA4 DebugView. Distinguish account creation from login; a returning user is not a new sign-up.

If an event is missing, check the app's success callback and trigger. If duplicated, inspect authentication redirects and repeated callbacks. If the share method is unknown, omit it rather than guessing.

Privacy and limits

Apply consent and keep data minimal. Do not identify accounts or content with personal information. These events describe client-observed actions; reconcile them with backend records if confirmed account state is required.

Use GA4 event validation to confirm each success signal.

Official references

EDITORIAL HISTORY

What changed

  1. v1.0.0
    Initial bilingual guide drafted and checked against current official Google documentation.
MEASUREMENT SUPPORT

Need a hand with your tracking?

Nicolas Salazar works with teams on analytics, tracking plans, data quality, consent, and implementation.