|
1 | 1 | ---
|
| 2 | +rewrite: true |
2 | 3 | title: 'GraphJSON Destination'
|
3 |
| -hidden: true |
4 |
| -published: false |
5 | 4 | beta: true
|
6 | 5 | ---
|
| 6 | +[GraphJSON](https://www.graphjson.com/guides/segment){:target="_blank"} provides self-serve analytics to better help you understand your business. |
| 7 | + |
| 8 | +This destination is maintained by GraphJSON. For any issues with the destination, [contact the GraphJSON Support team ](mailto:[email protected]). |
| 9 | + |
| 10 | + |
| 11 | +## Getting Started |
| 12 | + |
| 13 | +1. From the Destinations catalog page in the Segment App, click Add Destination. |
| 14 | +2. Search for “GraphJSON” in the Destinations Catalog, and select the “GraphJSON” destination. |
| 15 | +3. Choose which Source should send data to the “GraphJSON” destination. |
| 16 | +4. Go to the `https://graphjson.com/dashboard/integrations/segment`, find and copy the “API key”. |
| 17 | +5. Enter the “API Key” in the “GraphJSON” destination settings in Segment. |
| 18 | +6. Go to `https://graphjson.com/dashboard/integrations/segment` and finish the setup on the GraphJSON side. |
| 19 | + |
| 20 | +## Supported methods |
| 21 | + |
| 22 | +GraphJSON supports the following methods, as specified in the [Segment Spec](/docs/connections/spec). |
| 23 | + |
| 24 | +### Page |
| 25 | + |
| 26 | +Send [Page](/docs/connections/spec/page) calls to GraphJSON. For example: |
| 27 | + |
| 28 | +```js |
| 29 | +analytics.page() |
| 30 | +``` |
| 31 | + |
| 32 | +Segment sends Page calls to GraphJSON as a `pageview`. |
| 33 | + |
| 34 | + |
| 35 | +### Screen |
| 36 | + |
| 37 | +Send [Screen](/docs/connections/spec/screen) calls to GraphJSON. For example: |
| 38 | + |
| 39 | +```obj-c |
| 40 | +[[SEGAnalytics sharedAnalytics] screen:@"Home"]; |
| 41 | +``` |
| 42 | +
|
| 43 | +Segment sends Screen calls to GraphJSON as a `screenview`. |
| 44 | +
|
| 45 | +
|
| 46 | +### Identify |
| 47 | +
|
| 48 | +Send [Identify](/docs/connections/spec/identify) calls to GraphJSON. For example: |
| 49 | +
|
| 50 | +```js |
| 51 | +analytics.identify('userId123', { |
| 52 | + |
| 53 | +}); |
| 54 | +``` |
| 55 | + |
| 56 | +Segment sends Identify calls to GraphJSON as an `identify` event. |
| 57 | + |
| 58 | + |
| 59 | +### Track |
| 60 | + |
| 61 | +Send [Track](/docs/connections/spec/track) calls to GraphJSON. For example: |
| 62 | + |
| 63 | +```js |
| 64 | +analytics.track('Login Button Clicked') |
| 65 | +``` |
| 66 | + |
| 67 | +Segment sends Track calls to GraphJSON as a `track` event. |
0 commit comments