login
RecommendedSend this event to signify that a user has logged in.
- Platforms
- web, app
- When it fires
- You send it when the action happens.
Parameters (1)
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| method | string | No | The method used to login. |
Example
gtag.js
gtag('event', 'login', {
method: 'Google',
});GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'login',
method: 'Google',
});