benjaminhoffman / gatsby-plugin-segment-js

Gatsby plugin for segment.com's analytic.js snippet
https://www.npmjs.com/package/gatsby-plugin-segment-js
MIT License
40 stars 28 forks source link

Adding host option #21

Closed marclar closed 4 years ago

marclar commented 5 years ago

In order to support custom hosts (see https://segment.com/docs/sources/website/analytics.js/#proxy), this PR adds a host parameter that defaults to https://cdn.segment.io

joaquinmoreira commented 5 years ago

Nice job! I was going to create a PR with the same feature, I'm glad I look through the open issues and PRs first.

It may be good idea to add links to segment doc about this in the README:

marclar commented 5 years ago

Thanks, @JoaquinScript - made that change and restored what I thought was unused code. I saw in #18 that there was some reasoning behind having it.

wolfeidau commented 4 years ago

Is this going to be merged / updated? Looking for similar functionality.