📈
Measuring and visualizing page views on your website with Pixela
One of the properties that can be specified when creating a new graph definition or updating an existing graph definition is
selfSufficient
. The following is an example of an API request to update the selfSufficient
of an existing graph to increment
.Shell
A graph with its
selfSufficient
as increment
will, when its image is displayed example, when GET - /v1/users/<username>/graphs/<graphID>
of the graph is called — , it will display the image of the graph and at the same time add the value of the day by the minimum unit.The minimum unit is as follows:
- If
type
of the graph isint
: 1
- If
type
of the graph isfloat
: 0.01
In other words, the number of times the graph have been displayed can be directly showed on that graph. Therefore, it’s a perfect way to measure and display the number of page views of your website.

If you prepare the graph that its
selfSufficient
is increment
, then the thing you have to do is embedding the graph in the website where you want to measure page viewsOnce you have a graph with
selfSufficient
is increment
, all you need to do is embed it in your website where you want to measure page views (the number of times the graph is displayed). Please see Embedding a graph in your website in the easiest way about how to embed graphs in your website.
Notes
- This feature does not provide exact measurements.
- You can also specify
decrement
forselfSufficient
. It will subtract the value of the day by the minimum unit. The minimum unit is as follows: - If
type
of the graph isint
: -1
- If
type
of the graph isfloat
: -0.01
- This feature is only available to Pixela supporters as of December 2021.
- Please see Make exclusive features available as a benefit of supporting Pixela - Pixela Supporter Program how to support Pixela.