Mailgun
Authentication
If you are new to creating authorizations in Lytics, see the Authorizations documentation for more information.
- Select Mailgun from the list of providers.
- Select the Mailgun API Key method for the authorization.
- Enter a Label to identify your authorization.
- (Optional) Enter a Description for further context on your authorization.
- Enter your Domain and API Key.
- Click Save authorization to save your newly-created authorization.
Import Data from Mailgun into Lytics
-
Authorize Lytics with Mailgun, if you have not previously done so.
-
Select Setup webhooks from the list of workflows.
-
This workflow doesn't require any additional configuration. Click Start setup and Lytics will begin collecting data in realtime as users open and click through emails sent from Mailgun.
Fields
The following fields are included in the default mapping of the mg_events
stream:
Source Field | Conditional (IF) | Lytics User Field | Description | Type |
---|---|---|---|---|
city | city | string | ||
email(recipient) | email unique id | Email Address | string | |
emaildomain(recipient) | email_domain | Email Domain | string | |
map("email", epochms()) | last_channel_activities | Last Activity By Channel | map[string]time | |
max(epochms()) | last_active_ts | Last Active | date | |
set("email") | event IN ("opened", "clicked") | channels | All Channels Used | []string |
set(url) | mg_email_urls | Mailgun URLs Clicked | []string | |
valuect(event) | mg_email_event | map[string]intsum | ||
valuect(hash(urlmain(url))) | event IN ("opened", "clicked") | hashedurls | Hashed Urls Visited | map[string]intsum |
Updated 12 months ago