Google Auth
Google Auth Event
The form
event can also be used to track user information after authenticating with Google. Simply submit an event with "form" as the eventType
, any appropriate name as eventName
, and add the e-mail
and (optionally) name
as attributes in the field parameters
.
string
Required
Authenticated e-mail
name
string
Optional
Name of account
Example only with required email field:
safary.track({
eventType: "form",
eventName: "google-auth",
parameters: {
email: "user@example.com"
}
})
Example with optional name field included:
safary.track({
eventType: "form",
eventName: "google-auth",
parameters: {
email: "user@example.com",
name: "John Doe"
}
})
Please note that the parameters
field can also include any other information you believe is useful to track, as long as you follow the guidelines in the Custom Parameters subsection.
See the last section of this page for troubleshooting.
Troubleshooting
Required arguments:
Note that
eventType
+eventName
are required arguments forsafary.track
.Therefore, for example, the following would not work:
safary.track( { eventName: "main offer" } )
// Gives:
// ERROR: safary.track(): eventType is undefined.
Required format:
Note that the
parameters
used in the both tracking functions is required to be an object.Therefore, for example, passing a string as
parameters
would not work:
safary.track( { eventType: "buy", eventName: "main offer", parameters: "ETH" } )
// Gives:
// ERROR: safary.track(): parameters is not an object.
Last updated