Snowplow event tracker for C++. Add analytics to your C++ applications, servers and games
host> git clone https://github.com/snowplow/snowplow-cpp-tracker
host> cd snowplow-cpp-tracker
host> makeThis will create two executables - the first is the test-suite which can be executed with make unit-tests.
The other is an example program which will send one of every type of event to an endpoint of your choosing like so:
host> cd build
host> ./tracker_example {{ your collector uri }}If you make changes only to a header file there is a chance it won't be picked up by make in which case you will need to:
host> make clean
host> makeTo run the test suite:
host> make unit-testsIf you wish to generate a local code coverage report you will first need to install lcov on your host machine. The easiest way to do this is using brew:
host> brew install lcov Then run the following:
host> make lcov-genhtmlThe above runs the test suite and then generates a full code coverage report which can be accessed by opening the index.html in the build directory.
git clone https://github.com/snowplow/snowplow-cpp-tracker
In the cloned directory two Visual Studio 2015 project files are available:
snowplow-cpp-tracker.slnThis is required to compile the tracker and run the tests (you'll need this one to edit the tracker itself)snowplow-cpp-tracker-example.slnThis is a demo project showing use of this tracker
To run the tests under windows, you need to open the snowplow-cpp-tracker.sln solution, build it for your target platform and run the resulting executable.
| Technical Docs | Setup Guide | Roadmap | Contributing |
|---|---|---|---|
| ![i1] techdocs-image | ![i2] setup-image | ![i3] roadmap-image | ![i4] contributing-image |
| [Technical Docs] techdocs | [Setup Guide] setup | Roadmap roadmap | Contributing contributing |
The Snowplow C++ Tracker is copyright 2016 Snowplow Analytics Ltd.
Licensed under the [Apache License, Version 2.0] license (the "License"); you may not use this software except in compliance with the License.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.