├── .babelrc ├── .eslintrc.js ├── .github └── workflows │ └── test.yml ├── .gitignore ├── .npmignore ├── .nvmrc ├── CHANGELOG.md ├── LICENSE ├── README.md ├── dev ├── .gitignore ├── gatsby-config.js ├── nodemon.json ├── package.json ├── src │ └── pages │ │ └── index.js ├── static │ └── favicon.ico └── test │ ├── mocha-config.js │ ├── mocha-environment.js │ └── mocha-setup.js ├── example ├── .gitignore ├── LICENSE ├── README.md ├── assets │ ├── segment_ui.png │ ├── track_event.png │ └── track_page.png ├── gatsby-config.js ├── package.json └── src │ ├── components │ ├── header.js │ ├── image.js │ ├── layout.css │ ├── layout.js │ └── seo.js │ ├── images │ └── gatsby-icon.png │ └── pages │ ├── 404.js │ ├── index.js │ └── page-2.js ├── index.js ├── package.json ├── src ├── gatsby-browser.js └── gatsby-ssr.js └── tests ├── .eslintrc.js ├── gatsby-2 ├── gatsby-config.js ├── package.json ├── src │ └── pages │ │ └── index.js ├── static │ └── favicon.ico └── test │ ├── mocha-config.js │ ├── mocha-environment.js │ └── mocha-setup.js ├── gatsby-3 ├── gatsby-config.js ├── package.json ├── src │ └── pages │ │ └── index.js ├── static │ └── favicon.ico └── test │ ├── mocha-config.js │ ├── mocha-environment.js │ └── mocha-setup.js ├── gatsby-4 ├── gatsby-config.js ├── package.json ├── src │ └── pages │ │ └── index.js ├── static │ └── favicon.ico └── test │ ├── mocha-config.js │ ├── mocha-environment.js │ └── mocha-setup.js ├── gatsby-5 ├── gatsby-config.js ├── package.json ├── src │ └── pages │ │ └── index.js ├── static │ └── favicon.ico └── test │ ├── mocha-config.js │ ├── mocha-environment.js │ └── mocha-setup.js └── shared └── tests.test.js /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/.babelrc -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/.npmignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v18 -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/README.md -------------------------------------------------------------------------------- /dev/.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | -------------------------------------------------------------------------------- /dev/gatsby-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/dev/gatsby-config.js -------------------------------------------------------------------------------- /dev/nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/dev/nodemon.json -------------------------------------------------------------------------------- /dev/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/dev/package.json -------------------------------------------------------------------------------- /dev/src/pages/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/dev/src/pages/index.js -------------------------------------------------------------------------------- /dev/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/dev/static/favicon.ico -------------------------------------------------------------------------------- /dev/test/mocha-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/dev/test/mocha-config.js -------------------------------------------------------------------------------- /dev/test/mocha-environment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/dev/test/mocha-environment.js -------------------------------------------------------------------------------- /dev/test/mocha-setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/dev/test/mocha-setup.js -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/example/.gitignore -------------------------------------------------------------------------------- /example/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/example/LICENSE -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/example/README.md -------------------------------------------------------------------------------- /example/assets/segment_ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/example/assets/segment_ui.png -------------------------------------------------------------------------------- /example/assets/track_event.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/example/assets/track_event.png -------------------------------------------------------------------------------- /example/assets/track_page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/example/assets/track_page.png -------------------------------------------------------------------------------- /example/gatsby-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/example/gatsby-config.js -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/example/package.json -------------------------------------------------------------------------------- /example/src/components/header.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/example/src/components/header.js -------------------------------------------------------------------------------- /example/src/components/image.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/example/src/components/image.js -------------------------------------------------------------------------------- /example/src/components/layout.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/example/src/components/layout.css -------------------------------------------------------------------------------- /example/src/components/layout.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/example/src/components/layout.js -------------------------------------------------------------------------------- /example/src/components/seo.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/example/src/components/seo.js -------------------------------------------------------------------------------- /example/src/images/gatsby-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/example/src/images/gatsby-icon.png -------------------------------------------------------------------------------- /example/src/pages/404.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/example/src/pages/404.js -------------------------------------------------------------------------------- /example/src/pages/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/example/src/pages/index.js -------------------------------------------------------------------------------- /example/src/pages/page-2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/example/src/pages/page-2.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | // noop -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/package.json -------------------------------------------------------------------------------- /src/gatsby-browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/src/gatsby-browser.js -------------------------------------------------------------------------------- /src/gatsby-ssr.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/src/gatsby-ssr.js -------------------------------------------------------------------------------- /tests/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/.eslintrc.js -------------------------------------------------------------------------------- /tests/gatsby-2/gatsby-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-2/gatsby-config.js -------------------------------------------------------------------------------- /tests/gatsby-2/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-2/package.json -------------------------------------------------------------------------------- /tests/gatsby-2/src/pages/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-2/src/pages/index.js -------------------------------------------------------------------------------- /tests/gatsby-2/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-2/static/favicon.ico -------------------------------------------------------------------------------- /tests/gatsby-2/test/mocha-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-2/test/mocha-config.js -------------------------------------------------------------------------------- /tests/gatsby-2/test/mocha-environment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-2/test/mocha-environment.js -------------------------------------------------------------------------------- /tests/gatsby-2/test/mocha-setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-2/test/mocha-setup.js -------------------------------------------------------------------------------- /tests/gatsby-3/gatsby-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-3/gatsby-config.js -------------------------------------------------------------------------------- /tests/gatsby-3/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-3/package.json -------------------------------------------------------------------------------- /tests/gatsby-3/src/pages/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-3/src/pages/index.js -------------------------------------------------------------------------------- /tests/gatsby-3/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-3/static/favicon.ico -------------------------------------------------------------------------------- /tests/gatsby-3/test/mocha-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-3/test/mocha-config.js -------------------------------------------------------------------------------- /tests/gatsby-3/test/mocha-environment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-3/test/mocha-environment.js -------------------------------------------------------------------------------- /tests/gatsby-3/test/mocha-setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-3/test/mocha-setup.js -------------------------------------------------------------------------------- /tests/gatsby-4/gatsby-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-4/gatsby-config.js -------------------------------------------------------------------------------- /tests/gatsby-4/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-4/package.json -------------------------------------------------------------------------------- /tests/gatsby-4/src/pages/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-4/src/pages/index.js -------------------------------------------------------------------------------- /tests/gatsby-4/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-4/static/favicon.ico -------------------------------------------------------------------------------- /tests/gatsby-4/test/mocha-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-4/test/mocha-config.js -------------------------------------------------------------------------------- /tests/gatsby-4/test/mocha-environment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-4/test/mocha-environment.js -------------------------------------------------------------------------------- /tests/gatsby-4/test/mocha-setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-4/test/mocha-setup.js -------------------------------------------------------------------------------- /tests/gatsby-5/gatsby-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-5/gatsby-config.js -------------------------------------------------------------------------------- /tests/gatsby-5/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-5/package.json -------------------------------------------------------------------------------- /tests/gatsby-5/src/pages/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-5/src/pages/index.js -------------------------------------------------------------------------------- /tests/gatsby-5/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-5/static/favicon.ico -------------------------------------------------------------------------------- /tests/gatsby-5/test/mocha-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-5/test/mocha-config.js -------------------------------------------------------------------------------- /tests/gatsby-5/test/mocha-environment.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-5/test/mocha-environment.js -------------------------------------------------------------------------------- /tests/gatsby-5/test/mocha-setup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/gatsby-5/test/mocha-setup.js -------------------------------------------------------------------------------- /tests/shared/tests.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/benjaminhoffman/gatsby-plugin-segment-js/HEAD/tests/shared/tests.test.js --------------------------------------------------------------------------------