Installation
The Tracking API allows you to send data to GoSquared from any platform, such as:
- A visitor's browser viewing a page on your website using the JavaScript tracker.
- An application running on your server using the Node.js, Ruby Client, Rails Gem or PHP modules.
- A native iOS application using the iOS SDK.
- Anywhere else using our general HTTP API.
If there isn't a module available for your platform you can also interact with the GoSquared API via Segment.
Install the node module from npm.
npm install --save gosquared
Then require the GoSquared module in your application...
var GoSquared = require('gosquared');
// initialise with your config
var gosquared = new GoSquared({
site_token: 'GSN-106863-S',
api_key: 'demo' // https://www.gosquared.com/settings/api
});
// good to go - call functions on gosquared object