This go app provides a simple api to save "tags" in json format. Use it for example to count pageviews of your website.
Save the following tag by calling the /create endpoint of the go app with this payload:
{
uri: "/the/uri/of/the/subpage",
some: "other",
info: "mations",
foo: "bar"
}Later you can count tags by csalling the /count endpoint with the following payload:
{
uri: "/the/uri/of/the/subpage"
}
// or if you want more specific tags:
{
uri: "/the/uri/of/the/subpage",
foo: "bar"
}Both json payloads above would match the saved tag. The following tag would not match:
// this would NOT match
{
uri: "/the/uri/of/the/subpage",
unknown: "property"
}