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 576 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
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions: 7.5.x, 7.4.x

Package Information

  • Package owner: Cimplex
  • Created: 26/06/2016
  • Current version 1.0.1
  • .NET version 4.5
  • License MIT
  • Downloads on Our: 977