6 votes

uIncrement

Get statistics on your nodes super easy with uIncrement.

What do I get?
uIncrement comes with a data type that will list how many times your node have been visited. Today, Last 7 days, Last 30 days, Last 3 months, Last 6 months and Last 12 months. It also comes with a service class so you can access your data with your c# code.

 

How does it work?
You decide where and when your counter should increment. We have provide you two different increment functions, one will increment at once and the other one will create a session for the user to prevent multiple incrementation by the same user. Each node will get a maximum of 365 rows in the database. Any rows older than a year will be deleted.

 

Installation
Download and install uIncrement in the developer section. Add the datatype uIncrement to the documenttype you'd like to show your statistics on.

 

Show me the code!
// Namespace
@using uIncrement.Core.Services

// Increment
CounterService.Increment(Model.Content.Id);

// Increment with session
CounterService.IncrementWithSession(Model.Content.Id);

// Get number of views the last 7 days with Razor
@CounterService.GetValue(Model.Content.Id, 7)

// Get number of views between two dates
@CounterService.GetValueBetween(Model.Content.Id, DateTime.Parse("2016-06-01"), DateTime.Parse("2016-06-30"))

 

PS. Check out my other packages at
https://our.umbraco.org/member/140634
https://our.umbraco.org/projects/website-utilities/ubooking/

Screenshots

Package owner

Cimplex

Cimplex

Cimplex has 526 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
8.3.x (untested)
8.2.x (untested)
8.1.x (untested)
8.0.x (untested)
7.15.x (untested)
7.14.x (untested)
7.13.x (untested)
7.12.x (untested)
7.11.x (untested)
7.10.x (untested)
7.9.x (untested)
7.8.x (untested)
7.7.x (untested)
7.6.x (untested)
7.5.x (100%)
7.4.x (100%)
7.3.x (untested)
7.2.x (untested)
7.1.x (untested)
7.0.x (untested)
6.1.x (untested)
6.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Cimplex
  • Created: 26/06/2016
  • Current version 1.0.1
  • .net Version 4.5
  • License MIT
  • Downloads: 735