Pixel Tracker
Pixel Tracking
The pixel tracking implementation of the StatsMix API is designed differently than the other methods of accessing custom metrics. We offer a simplified call to the API specifically for sending us a new data point immediately when the pixel is downloaded. The typical usage for the pixel tracker would be to place the following line of code on a specific webpage. When the page is loaded, a data point is added to the specified metric.
<img src="http://www.statsmix.com/stats/iapi?v=VALUE&p=PROFILE_ID&m=METRIC_ID" width="1" height="1">
Authentication
The pixel tracker does not require authentication, but will only work if you have a valid API key.
Instructions
To add a new pixel tracker, click the "Add a new metric" button. Select your profile, give the metric a name, then click the save button.

Click on the link for your new metric.

Click on the "Show API details" link.

Copy the generated pixel tracker code.
![]()
Paste this code on any webpage.