docs: added dividers + see also section (#2899)
This commit is contained in:
@@ -36,6 +36,8 @@ Check out the [Event Reference](../advanced/backend/subscribers/events-list.md)
|
||||
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
## Prerequisites
|
||||
|
||||
### Medusa Server
|
||||
@@ -48,6 +50,8 @@ In addition, make sure to have Redis installed and configured with your Medusa s
|
||||
|
||||
You need to [create a Segment account](https://app.segment.com/signup/) to follow along with the tutorial. Segment offers a free plan to get started quickly.
|
||||
|
||||
---
|
||||
|
||||
## Create a Segment Source
|
||||
|
||||
On your Segment dashboard, choose Catalog from the sidebar under Connections.
|
||||
@@ -84,6 +88,8 @@ You can then choose from a list of destinations such as Google Universal Analyti
|
||||
|
||||
The process of integrating each destination is different, so you must follow the steps detailed in Segment for each destination you choose.
|
||||
|
||||
---
|
||||
|
||||
## Install the Segment Plugin
|
||||
|
||||
In the directory of your Medusa server, run the following command to install the Segment plugin:
|
||||
@@ -114,6 +120,8 @@ const plugins = [
|
||||
];
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Test the Plugin
|
||||
|
||||
Run your server with the following command:
|
||||
@@ -136,6 +144,8 @@ If the data is not appearing on the destination, the issue is related to your co
|
||||
|
||||
:::
|
||||
|
||||
---
|
||||
|
||||
## Add Custom Tracking
|
||||
|
||||
In some cases, you might want to track more events or custom events. You can do that using the `SegmentService` provided by the Segment Plugin.
|
||||
@@ -185,8 +195,11 @@ After adding the above subscriber, run your server again if it isn’t running a
|
||||
|
||||

|
||||
|
||||
## What’s Next
|
||||
---
|
||||
|
||||
- Learn how [services](../advanced/backend/services/create-service.md) and [subscribers](../advanced/backend/subscribers/create-subscriber.md) work.
|
||||
- Check out a [full list of events](../advanced/backend/subscribers/events-list.md) in Medusa.
|
||||
- Learn how to [deploy the Medusa server](../deployments/server/index.mdx).
|
||||
## See Also
|
||||
|
||||
- [Services Overview](../advanced/backend/services/create-service.md)
|
||||
- [Subscribers Overview](../advanced/backend/subscribers/create-subscriber.md)
|
||||
- [Events Reference](../advanced/backend/subscribers/events-list.md)
|
||||
- [Deploy the Medusa server](../deployments/server/index.mdx)
|
||||
|
||||
Reference in New Issue
Block a user