Skip to main content

June

This page describes how to set up June as a destination.

Set up

An example setup for June is shown below.

src/pages/api/syft.ts
// ...
const destinations = [
{
type: "june",
settings: {
apiKey: "xxxx"
},
},
];
// ...

Configuration options

NameTypeDescriptionRequiredDefault
apiKeystringYour June API Keytrue

Data Modeling

Track Calls

Track Event

Send an event to June. Learn more about Events in June

Matched events

type = "track"

Data Mapping

Destination FieldTypeDescriptionSource Field
eventstringThe event name$.event
propertiesobjectProperties to send with the event$.properties
timestampstringThe timestamp of the event$.timestamp
anonymousIdstringThe anonymous ID associated with the user$.anonymousId
userIdstringThe ID associated with the user$.userId
contextobjectContext properties to send with the event$.context
messageIdstringThe Syft messageId$.messageId
,
Page Calls

Page Event

Send a page event to June. Learn more about Events in June

Matched events

type = "page"

Data Mapping

Destination FieldTypeDescriptionSource Field
anonymousIdstringAn anonymous identifier$.anonymousId
userIdstringThe ID associated with the user$.userId
propertiesobjectPage properties$.properties
namestringThe name of the page$.properties.name
contextobjectContext properties to send with the event$.context
timestampstringThe timestamp of the event$.timestamp
messageIdstringThe Syft messageId$.messageId
,
Identify Calls

Identify

Identify user in June

Matched events

type = "identify"

Data Mapping

Destination FieldTypeDescriptionSource Field
anonymousIdstringAn anonymous identifier$.anonymousId
userIdstringThe ID associated with the user$.userId
traitsobjectTraits to associate with the user$.traits
contextobjectContext properties to send with the event$.context
timestampstringThe timestamp of the event$.timestamp
messageIdstringThe Syft messageId$.messageId
,
Group Calls

Group

Group user in June

Matched events

type = "group"

Data Mapping

Destination FieldTypeDescriptionSource Field
anonymousIdstringAnonymous id$.anonymousId
userIdstringThe ID associated with the user$.userId
groupIdstringThe group id$.groupId
traitsobjectTraits to associate with the group$.traits
contextobjectContext properties to send with the event$.context
timestampstringThe timestamp of the event$.timestamp
messageIdstringThe Syft messageId$.messageId