# Track GA4 sign-up, login, and share actions Instrument sign_up, login and share so each event fires only after the account or share action succeeds, then test consent and duplicates. - Canonical: https://satracking.net/guides/ga4-signup-login-share/ - Language: en - Category: events - Level: beginner - Published: 2026-11-10 - Updated: 2026-11-10 --- ## 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. ## Related work Use [GA4 event validation](/guides/validar-eventos-ga4/) to confirm each success signal. ## Official references - Recommended events: sign_up, login, and share — https://developers.google.com/analytics/devguides/collection/ga4/reference/events (verified 2026-11-10) - Set up events — https://developers.google.com/analytics/devguides/collection/ga4/events (verified 2026-11-10)