Pixela tips; Using Pixela to Measure and Visualize Your Site’s PVs
Hello! Today I want to share a tip using Pixela.
When defining a graph in Pixela, you can specify the selfSufficient
option. Here is the description of the API documentation:
selfSufficient — string
[optional] If SVG graph with this field
increment
ordecrement
is referenced, Pixel of this graph itself will be incremented or decremented.
It is suitable when you want to record the PVs on a web page or site simultaneously.
The specification of increment or decrement is the same as Increment a Pixel and Decrement a Pixel with webhook.
If not specified, it is treated asnone
.
In other words, if you define a graph as "selfSufficient":"increment"
, the Pixel value for that graph for the day will be incremented each time someone sees your graph.
And if you put that graph somewhere on your site, you can measure the number of PVs on the site and appeal to everyone at the same time! Yeah!
In fact, I embed Pixela on my blog site. (It’s a Japanese blog.)
The embedded graph has the mode=short
option. Pixela keeps track of the number of PVs since last July.
It’s interesting to see the periodicity of the people who visit my site. I’ll be glad if you try it!