If you have node installed, you can clone the repo for whichever integration you'd like to use (say GA) then install segmentio-facade
:
git clone https://github.com/segmentio/integration-google-analytics.git
cd integration-google-analytics
npm install segmentio-facade
Then create a new file in the top level of the directory with the script from this gist.