Sweet! The IncrementSession creates a session for the user to prevent the counter to increment every time the user navigates back to the same node, or reloads the page.
You can debug this by clearing your cookies and the counter should increment one time per cache cleaning, or if you have two computers the counter should increment one time per computer.
No Data :-(
Morning, i have installed your package and added the DataType etc.. but the counter is not working and the database table has no entries
Thanks
Hi David, Did you place the code given on the project page in your view?
https://our.umbraco.org/projects/backoffice-extensions/uincrement/
// Herman
Thanks for the quick reply, yeah i have added: but it is
Thanks
David
Hi David, are you able to paste all code in your view?
This code should work:
That code should output a number that increments each time you reload the browser.
Are you able to find a database table named UIncrement_Counter in the database? Can you check your log to see if it there are any errors?
// Herman
What you have just sent works.
but what is the need for this one
Is this just to do sessions instead of page views?
Thanks
Hi David,
Sweet! The IncrementSession creates a session for the user to prevent the counter to increment every time the user navigates back to the same node, or reloads the page.
You can debug this by clearing your cookies and the counter should increment one time per cache cleaning, or if you have two computers the counter should increment one time per computer.
// Herman
Thanks That was brilliant
Sorry one last question is there a quick way to block internal work traffic from this counter?
Sure!
You could probably do something like this:
or replace localhost with you dev domain.
// Herman
is working on a reply...