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.
curl https://gist.githubusercontent.com/sperand-io/32cff1a9003d117c6fae/raw/a5932c51b68258475a0823db46b483cc7bbf1166/runner.js > runner.js
Follow the instructions in that script's comments to supply the call and settings from your project you'd like to simulate.
Finally, set your DEBUG
env var and run that script.
DEBUG=* node runner
Boom, you'll get output showing the mapped request body and the endpoint(s) we're sending to.
@sperand-io - Have the npm modules Segment is using changed slightly? I'm getting the following error when I run the runner.js file. It looks like
this.redis()
is no longer defined.