|
| 1 | +--- |
| 2 | +title: Synap Source |
| 3 | +id: OyAdFUfMz9 |
| 4 | +beta: true |
| 5 | +--- |
| 6 | + |
| 7 | +[Synap](https://synap.ac){:target="_blank”} is an online exam platform specialising in the delivery of high stakes exams, assessments and online learning. Synap is used by a wide range of companies and educational institutions to deliver high quality, robust assessments. |
| 8 | + |
| 9 | +This source is maintained by Synap. For any issues with the source, contact Synap via the live chat widget available on your portal, or get in touch with your account manager. Synap also provides more [detailed documentation on their website](https://academy.synap.ac/doc/integrations/segment){:target="_blank”} with specific guides and best practices. |
| 10 | + |
| 11 | +## Getting started |
| 12 | + |
| 13 | +1. From your workspace's Sources page, click **Add source**. |
| 14 | + |
| 15 | +2. Search for and select Synap. |
| 16 | + |
| 17 | +3. Copy the Write key from the Segment UI. |
| 18 | + |
| 19 | +4. Login to your Synap portal as an admin, and go to `/portal-dashboard/settings/integrations`. To navigate to this page via the UI, first click on the 'gears' icon near the bottom left hand side of the screen, then look for the Integrations menu item. |
| 20 | + |
| 21 | +5. Paste your write key into the Segment Write Key box and click **Save** - this verifies and saves your API key. |
| 22 | + |
| 23 | +## Stream |
| 24 | + |
| 25 | +Synap uses their stream Source component to send Segment event data. On the client-side, this source uses Segment's Identify and Page events. On the server-side, it uses Identify and Track events. These events are then available in any Segment destination that accepts client or server-side events and available in a schema in your data warehouse that you can query using SQL. |
| 26 | + |
| 27 | +Synap identifies users based on their Synap User ID, which is sent as the userId in Segment events. |
| 28 | + |
| 29 | +## Events |
| 30 | + |
| 31 | +The table below lists events that Synap sends to Segment. These events appear as tables in your warehouse, and as regular events in other destinations. Synap includes the userId, if available. |
| 32 | + |
| 33 | +| Event Name | Description | |
| 34 | +| ---------------------- | ----------------------------------------------------------------- | |
| 35 | +| Began Test | User starts a test | |
| 36 | +| Submitted Test | User finishes ('submits') a test (may or may not require marking) | |
| 37 | +| Completed Test | When a Test has been 'completed' (including marking) | |
| 38 | +| Collection Item Viewed | User views a Collection Item | |
| 39 | +| User Registered | User registered an Account | |
| 40 | +| Assignment Started | User starts an Assignment | |
| 41 | +| Exam User Registered | User is enrolled for an Exam | |
| 42 | +| User Logged In | User explicitly logged in to Synap | |
| 43 | +| User Session Restored | User opened Synap after a period of in activity | |
| 44 | + |
| 45 | +To find the list of properties associated with the events, please refer to the [Synap Segment Documentation](https://academy.synap.ac/doc/integrations/segment){:target="_blank”}. Some of the events, notably those related to Test and Question submission, have relatively large payloads. You might want to review the [Synap Test and Question Analytics Schemas](https://academy.synap.ac/doc/integrations/segment/test-and-question-analytics){:target="_blank"} before tracking these events. |
| 46 | + |
| 47 | +## Identify |
| 48 | + |
| 49 | +Synap sends an identify() message to Segment which consists of the userId and the user traits. |
| 50 | + |
| 51 | +| Field | Type | Description | |
| 52 | +| ------- | ------ | ------------------------------------------------------------------------------------- | |
| 53 | +| userId | string | Unique identifier for the user in Synap | |
| 54 | +| context | object | User [context](https://segment.com/docs/connections/spec/common/#context) | |
| 55 | +| traits | object | Custom [traits](https://segment.com/docs/connections/spec/common/#traits) of the user | |
| 56 | + |
| 57 | +### Identify traits |
| 58 | + |
| 59 | +| Name | Type | Description | |
| 60 | +| ---------------------- | ----------------------------------- | ----------------------------------------------------------------------- | |
| 61 | +| createdAt | date | The date this user's account was created | |
| 62 | +| email | string | The user's email address | |
| 63 | +| emailVerified | boolean | Whether or not the user has verified their email address | |
| 64 | +| firstName | string | The user's first name | |
| 65 | +| lastName | string | The user's last name | |
| 66 | +| marketingEmailsConsent | "removed", "pending" or "confirmed" | Enumeration representing the user's consent to receive marketing emails | |
| 67 | +| name | string | The user's full name | |
| 68 | +| profilePicture | string | a URL pointing to the user's profile picture, if provided | |
| 69 | + |
| 70 | + |
| 71 | +## Page |
| 72 | + |
| 73 | +Page calls include the page path and unique URL. |
| 74 | + |
| 75 | +| Name | Type | Description | |
| 76 | +| ------ | ------ | ---------------------------------------- | |
| 77 | +| name | string | The name of the page | |
| 78 | +| path | string | The relative path to the page | |
| 79 | +| search | string | Any query string parameters from the URL | |
| 80 | +| title | string | The title of the page | |
| 81 | +| url | string | The full URL of the page | |
| 82 | + |
| 83 | +## Adding destinations |
| 84 | + |
| 85 | +Now that your source is set up, you can connect it to destinations. |
| 86 | + |
| 87 | +Log into your downstream tools and check to see that your events appear as expected, and that they contain all of the properties you expect. If your events and properties don’t appear, check the Event Delivery tool, and refer to the destination docs for each tool for troubleshooting. |
| 88 | + |
| 89 | +If there are any issues with how the events are arriving to Segment, contact the Synap support team via the live chat widget which is available to all Admin users of your portal. |
0 commit comments