Skip to content

Commit ec10c62

Browse files
authored
Merge pull request #5729 from segmentio/update-nextjs-examples
Update docs to include links to Next.js
2 parents 585f26a + ee149ee commit ec10c62

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/connections/sources/catalog/libraries/website/javascript/analytics-js-2.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ Analytics.js 2.0 includes the following open source components:
6565
Copyright Luke Edwards <[[email protected]](mailto:[email protected])> ([lukeed.com](https://lukeed.com/))
6666
License: MIT License, available here: [https://github.com/lukeed/uuid/blob/master/license](https://github.com/lukeed/uuid/blob/master/license)
6767

68-
**component-url v0.2.1** ([https://github.com/component/url](https://github.com/component/url))
69-
Copyright (c) 2014 Component
70-
License: MIT License, available here: [https://github.com/component/url/blob/master/Readme.md](https://github.com/component/url/blob/master/Readme.md)
7168

7269
**dset v2.0.1** ([https://github.com/lukeed/dset](https://github.com/lukeed/dset))
7370
Copyright (c) Luke Edwards <[[email protected]](mailto:[email protected])> ([lukeed.com](https://lukeed.com/))

src/connections/sources/catalog/libraries/website/javascript/index.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -982,18 +982,23 @@ The Segment Inspector is composed of these three components:
982982
- This tab enables you to see the information of a user if you're using the `identify` feature. You can associate the data to an individual and measure their activity across multiple sessions and devices. This tab only shows the user's traits that are on the client.
983983
- If you're not using the `identify` feature, the user remains anonymous.
984984
985+
## Example uses
986+
Here are some examples of using Analytics.js 2.0. Note that the examples assume Analytics.js is installed through [npm](https://github.com/segmentio/analytics-next/tree/master/packages/browser){:target="_blank”}.
985987
986-
## Open source libraries
988+
* **Next.js**
989+
* [with-segment-analytics](https://github.com/vercel/next.js/tree/canary/examples/with-segment-analytics){:target="_blank”}
990+
* [with-segment-analytics-pages-router](https://github.com/vercel/next.js/tree/canary/examples/with-segment-analytics-pages-router){:target="_blank”}
991+
* **Vanilla React, Vue**
992+
* See [Usage in Common Frameworks & SPAs](https://github.com/segmentio/analytics-next/tree/master/packages/browser#examples--usage-in-common-frameworks-and-spas){:target="_blank”}
987993
988-
Analytics.js 2.0 includes the following open source components:
994+
## External dependencies
995+
996+
Analytics.js 2.0 includes the following open source dependencies:
989997
990998
**uuid v2.0.0** ([https://github.com/lukeed/uuid](https://github.com/lukeed/uuid))
991999
Copyright Luke Edwards <[[email protected]](mailto:[email protected])> ([lukeed.com](https://lukeed.com/))
9921000
License: MIT License, available here: [https://github.com/lukeed/uuid/blob/master/license](https://github.com/lukeed/uuid/blob/master/license)
9931001
994-
**component-url v0.2.1** ([https://github.com/component/url](https://github.com/component/url))
995-
Copyright (c) 2014 Component
996-
License: MIT License, available here: [https://github.com/component/url/blob/master/Readme.md](https://github.com/component/url/blob/master/Readme.md)
9971002
9981003
**dset v2.0.1** ([https://github.com/lukeed/dset](https://github.com/lukeed/dset))
9991004
Copyright (c) Luke Edwards <[[email protected]](mailto:[email protected])> ([lukeed.com](https://lukeed.com/))

0 commit comments

Comments
 (0)