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.
Download the SDK and extract it to an appropriate folder in your project. Somewhere on your include_path
is best.
Adjust the require_once statement if necessary so it resolves to the path where you placed the SDK.
require_once('gosquared-php-sdk/main.php');
// initialise with your config
$GS = new GoSquared(array(
'site_token' => 'GSN-106863-S',
'api_key' => 'demo'
));
// good to go - call functions on $GS object