From c6b7835b6a5ad97751af093aae86f98615f8ca35 Mon Sep 17 00:00:00 2001 From: Yimeng Yu Date: Tue, 15 Feb 2022 14:25:25 -0800 Subject: [PATCH 1/4] add graphJSON destination documentation --- .../destinations/catalog/graphjson/index.md | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/src/connections/destinations/catalog/graphjson/index.md b/src/connections/destinations/catalog/graphjson/index.md index 30e8a5d247..d5ee7559bb 100644 --- a/src/connections/destinations/catalog/graphjson/index.md +++ b/src/connections/destinations/catalog/graphjson/index.md @@ -1,6 +1,71 @@ --- +rewrite: true title: 'GraphJSON Destination' hidden: true published: false beta: true --- +[GraphJSON](https://www.graphjson.com/guides/segment) provides self-serve analytics to better help you understand your business. + +This destination is maintained by GraphJSON. For any issues with the destination, [contact the GraphJSON Support team](mailto:hi@graphjson.com). + + +## Getting Started + +{% include content/connection-modes.md %} + +1. From the Destinations catalog page in the Segment App, click Add Destination. +2. Search for “GraphJSON” in the Destinations Catalog, and select the “GraphJSON” destination. +3. Choose which Source should send data to the “GraphJSON” destination. +4. Go to the https://graphjson.com/dashboard/integrations/segment, find and copy the “API key”. +5. Enter the “API Key” in the “GraphJSON” destination settings in Segment. +6. Go to https://graphjson.com/dashboard/integrations/segment and finish the setup on the GraphJSON side. + +## Supported methods + +GraphJSON supports the following methods, as specified in the [Segment Spec](https://segment.com//docs/connections/spec). + +### Page + +Send [Page](https://segment.com//docs/connections/spec/page) calls to GraphJSON. For example: + +```js +analytics.page() +``` + +Segment sends Page calls to GraphJSON as a `pageview`. + + +### Screen + +Send [Screen](https://segment.com//docs/connections/spec/screen) calls to GraphJSON. For example: + +```obj-c +[[SEGAnalytics sharedAnalytics] screen:@"Home"]; +``` + +Segment sends Screen calls to GraphJSON as a `screenview`. + + +### Identify + +Send [Identify](https://segment.com//docs/connections/spec/identify) calls to GraphJSON. For example: + +```js +analytics.identify('userId123', { + email: 'john.doe@example.com' +}); +``` + +Segment sends Identify calls to GraphJSON as an `identify` event. + + +### Track + +Send [Track](https://segment.com//docs/connections/spec/track) calls to GraphJSON. For example: + +```js +analytics.track('Login Button Clicked') +``` + +Segment sends Track calls to GraphJSON as a `track` event. From 3d4e365d6a247e5f2cc7b84b84b1091b9564d966 Mon Sep 17 00:00:00 2001 From: markzegarelli Date: Mon, 28 Feb 2022 12:40:50 -0800 Subject: [PATCH 2/4] Apply suggestions from code review --- .../destinations/catalog/graphjson/index.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/connections/destinations/catalog/graphjson/index.md b/src/connections/destinations/catalog/graphjson/index.md index d5ee7559bb..6da5468dc4 100644 --- a/src/connections/destinations/catalog/graphjson/index.md +++ b/src/connections/destinations/catalog/graphjson/index.md @@ -5,7 +5,7 @@ hidden: true published: false beta: true --- -[GraphJSON](https://www.graphjson.com/guides/segment) provides self-serve analytics to better help you understand your business. +[GraphJSON](https://www.graphjson.com/guides/segment){:target="_blank"} provides self-serve analytics to better help you understand your business. This destination is maintained by GraphJSON. For any issues with the destination, [contact the GraphJSON Support team](mailto:hi@graphjson.com). @@ -17,17 +17,17 @@ This destination is maintained by GraphJSON. For any issues with the destination 1. From the Destinations catalog page in the Segment App, click Add Destination. 2. Search for “GraphJSON” in the Destinations Catalog, and select the “GraphJSON” destination. 3. Choose which Source should send data to the “GraphJSON” destination. -4. Go to the https://graphjson.com/dashboard/integrations/segment, find and copy the “API key”. +4. Go to the https://graphjson.com/dashboard/integrations/segment{:target="_blank"}, find and copy the “API key”. 5. Enter the “API Key” in the “GraphJSON” destination settings in Segment. -6. Go to https://graphjson.com/dashboard/integrations/segment and finish the setup on the GraphJSON side. +6. Go to https://graphjson.com/dashboard/integrations/segment{:target="_blank"} and finish the setup on the GraphJSON side. ## Supported methods -GraphJSON supports the following methods, as specified in the [Segment Spec](https://segment.com//docs/connections/spec). +GraphJSON supports the following methods, as specified in the [Segment Spec](/docs/connections/spec). ### Page -Send [Page](https://segment.com//docs/connections/spec/page) calls to GraphJSON. For example: +Send [Page](/docs/connections/spec/page) calls to GraphJSON. For example: ```js analytics.page() @@ -38,7 +38,7 @@ Segment sends Page calls to GraphJSON as a `pageview`. ### Screen -Send [Screen](https://segment.com//docs/connections/spec/screen) calls to GraphJSON. For example: +Send [Screen](/docs/connections/spec/screen) calls to GraphJSON. For example: ```obj-c [[SEGAnalytics sharedAnalytics] screen:@"Home"]; @@ -49,7 +49,7 @@ Segment sends Screen calls to GraphJSON as a `screenview`. ### Identify -Send [Identify](https://segment.com//docs/connections/spec/identify) calls to GraphJSON. For example: +Send [Identify](/docs/connections/spec/identify) calls to GraphJSON. For example: ```js analytics.identify('userId123', { @@ -62,7 +62,7 @@ Segment sends Identify calls to GraphJSON as an `identify` event. ### Track -Send [Track](https://segment.com//docs/connections/spec/track) calls to GraphJSON. For example: +Send [Track](/docs/connections/spec/track) calls to GraphJSON. For example: ```js analytics.track('Login Button Clicked') From cc3b98b6a934283d38c76392c91ab92daaa78450 Mon Sep 17 00:00:00 2001 From: markzegarelli Date: Mon, 28 Feb 2022 12:41:36 -0800 Subject: [PATCH 3/4] Update src/connections/destinations/catalog/graphjson/index.md --- src/connections/destinations/catalog/graphjson/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connections/destinations/catalog/graphjson/index.md b/src/connections/destinations/catalog/graphjson/index.md index 6da5468dc4..e12c01a77b 100644 --- a/src/connections/destinations/catalog/graphjson/index.md +++ b/src/connections/destinations/catalog/graphjson/index.md @@ -19,7 +19,7 @@ This destination is maintained by GraphJSON. For any issues with the destination 3. Choose which Source should send data to the “GraphJSON” destination. 4. Go to the https://graphjson.com/dashboard/integrations/segment{:target="_blank"}, find and copy the “API key”. 5. Enter the “API Key” in the “GraphJSON” destination settings in Segment. -6. Go to https://graphjson.com/dashboard/integrations/segment{:target="_blank"} and finish the setup on the GraphJSON side. +6. Go to `https://graphjson.com/dashboard/integrations/segment` and finish the setup on the GraphJSON side. ## Supported methods From 79aa032b2ff8b896f4654f7373bc62b107d9da06 Mon Sep 17 00:00:00 2001 From: markzegarelli Date: Mon, 28 Feb 2022 14:50:54 -0800 Subject: [PATCH 4/4] updates --- Gemfile.lock | 0 src/_data/catalog/destinations.yml | 2 +- src/connections/destinations/catalog/graphjson/index.md | 6 +----- 3 files changed, 2 insertions(+), 6 deletions(-) mode change 100644 => 100755 Gemfile.lock diff --git a/Gemfile.lock b/Gemfile.lock old mode 100644 new mode 100755 diff --git a/src/_data/catalog/destinations.yml b/src/_data/catalog/destinations.yml index aba6569127..69f5fb0209 100644 --- a/src/_data/catalog/destinations.yml +++ b/src/_data/catalog/destinations.yml @@ -20913,7 +20913,7 @@ items: display_name: GraphJSON name: GraphJSON slug: graphjson - hidden: true + hidden: false regional: - us-west url: connections/destinations/catalog/graphjson diff --git a/src/connections/destinations/catalog/graphjson/index.md b/src/connections/destinations/catalog/graphjson/index.md index e12c01a77b..2286821c9d 100644 --- a/src/connections/destinations/catalog/graphjson/index.md +++ b/src/connections/destinations/catalog/graphjson/index.md @@ -1,8 +1,6 @@ --- rewrite: true title: 'GraphJSON Destination' -hidden: true -published: false beta: true --- [GraphJSON](https://www.graphjson.com/guides/segment){:target="_blank"} provides self-serve analytics to better help you understand your business. @@ -12,12 +10,10 @@ This destination is maintained by GraphJSON. For any issues with the destination ## Getting Started -{% include content/connection-modes.md %} - 1. From the Destinations catalog page in the Segment App, click Add Destination. 2. Search for “GraphJSON” in the Destinations Catalog, and select the “GraphJSON” destination. 3. Choose which Source should send data to the “GraphJSON” destination. -4. Go to the https://graphjson.com/dashboard/integrations/segment{:target="_blank"}, find and copy the “API key”. +4. Go to the `https://graphjson.com/dashboard/integrations/segment`, find and copy the “API key”. 5. Enter the “API Key” in the “GraphJSON” destination settings in Segment. 6. Go to `https://graphjson.com/dashboard/integrations/segment` and finish the setup on the GraphJSON side.