AMREIN ENGINEERING Agenda/X | Sharepoint | Solutions | Partners | Support | Search | About us | Home  
  AE Sharepoint Page Hits Web Part Deutsch English  

Sharepoint Web Parts  

Digital Clock Web Part  

Stock Chart Web Part  

Stock Quotes Web Part  

Dilbert Web Part  

Quote of the Day Web Part  

"Spotlight On.." Web Part  

"Tip of the Day" Web Part  

Lightbox Web Part  

Weather Web Part  

Slideshow Web Part  

Currency Rates Web Part  

Media Player Web Part  

YouTube Player Web Part  

Map Chart Web Part  

Google Chart Web Part  

Bullet Graph Web Part  

RSS Feed Ticker Web Part  

SQL Viewer Web Part  

Google Map Web Part  

Quick Poll Web Part  

Quick Survey Web Part  

Audio Player Web Part  

Google GeoMapper Web Part  

SQL Chart Web Part  

Exchange Calendar Web Part  

Podcast Web Part  

Filter Web Part  

Image Rotator Web Part  

Navigator Web Part  

KPI Web Part  

Page Hits Web Part  

Picture Menu Web Part  

Timer Web Part  

Van Gogh Web Part  

SQL Bullet Graph Web Part  

User Spotlight Web Part  

List View Web Part  

Staff Directory Web Part  

Birthday Reminder Web Part  

News Carousel Web Part  

Team Members Web Part  

Christmas Web Part  

Classifieds Web Part  

Google Earth Web Part  

Timeline Web Part  

Banner Rotator Web Part  

AZ Index Web Part  

Blog Roll Up Web Part  

Discussion Roll Up Web Part  

Document Roll Up Web Part  

News Roll Up Web Part  

Task Roll Up Web Part  

Calendar Roll Up Web Part  

Quick Form Web Part  

Twitter Web Part  

Upcoming Events Web Part  

Welcome Web Part  

Color Calendar Web Part  

Image Carousel Web Part  

Metro Grid Web Part  

Goal Thermometer Web Part  

Swipe Gallery Web Part  

List Rotator Web Part  

List Search Web Part  

Flash Rotator Web Part  

Accordion & Tabs List Bundle  

Accordion List Web Part  

Tabs List Web Part  

Microblog/Chat Web Part  

Toast Notifications  

Vacation Planner Web Part  

Multilevel Tile Web Part  

Inspired Tiles Web Part  

Facebook Timeline Web Part  

Zip Creator  

Web Part Support  

Web Part Bundle  

Microsoft Sharepoint Web Parts

Free Sharepoint Page Hits Web Part



PageHits Web Part

The AE Page Hits Web Part allows to display a page hit counter.
The Web Part can be used with Windows Sharepoint Services V3, MOSS 2007, Sharepoint 2010, Sharepoint 2013 and Sharepoint 2016.

Product Price     
Page Hits Web Part for SP 2007 and SP 2010 Free download..
Page Hits Web Part for SP 2013 Free download..
Page Hits Web Part for SP 2016 Free download..
Web Part Installation Instructions download..

Installation Instructions:
  1. download the Page Hits Web Part Installation Instructions (PDF file, see above) 
  2. either install the web part manually or deploy the feature to your server/farm as described in the instructions.
  3. Please first add a new List column of type “Number” named PageHits to the Sharepoint page library that hosts the page where you will be going to place the web part:


  4. configure the following Web Part properties in the Web Part Editor "Miscellaneous" pane section as needed:

    • Template: 
      enter the template to be used to render the output. The following tokens are available:

      {hits}   (the total number of page hits so far)
      {since}   (the date the page was created)
      {hitsperday} (the number of page hits per day)

      Example 1:
      Page Hits: {hits}

      Example 2:
      <div style="width:200px;background-color:tomato;font:10pt Segoe UI;color:white;padding:6px"><font size=6>{hits}</font> page hits since {since}<br>Hits per day: {hitsperday}</div>


    • Since Date:
      by default the web part uses the page creation date for the "{since}" and "{hitsperday}" tokens.
      You can override the default setting by entering a custom date.
    • Active:
      activate or deactivate the Page Hit counter.
      Please note that this setting by default is turned off, so you will need to make sure to enable it.




Please enter a comment below if you have problems with the installation, want to give feedback or have suggestions for improvements:

User Comments Post a Comment 

MikeZz  
12/31/2013 05:28 
Hi Juerg,
I noticed that it updates the properties of the page file in the library. Does this mean that it only counts users who have edit rights to the page or does it count even those who only have Read or even just View level access?

2nd question, is there any way to trick it into counting views of a regular file in a library (Like Excel)?

Thanks again for the great response!
Juerg  
12/31/2013 12:19 
MikeZz,
the web part counts all page hits (even for users that do only have “read” or “view” permissions on the page).
The web part cannot be used to count the number of document views. However, you can turn on auditing via “Site Settings/Site Collection Administration/Site collection audit settings” where you can enable tracking for document views, edits etc.
MikeZz  
1/3/2014 18:37 
Hi Juerg,
I was testing this part on my test collection. When I use this part and your example template showing hits per day on any existing subsite page, it works as shown.

However, I created a brand new subsite and put it on that site's home page and the webpart shows the total hit's correctly, but not hits per day (Notice " {hitsperday}" is spelled out):

Here's the result:
26 page hits since1/3/2014
Hits per day: {hitsperday}

I've tried creating numerous new subsites and always with the same result.

Any ideas?
Juerg  
1/3/2014 18:52 
MikeZz,
there is a bug in the web part that causes it to not replace the “{hitsperday}” token if the page is younger than 24 hours. The problem thus will go away after after the page is older than one day.
We will fix this problem in the web part’s next release.
Juerg  
1/3/2014 19:01 
MikeZz,
we have now fixed the problem with the {hitsperday} token and pages being younger than 24 hours.
Please re-download the updated Zip file, extract the WSP file and then update the web part solution.
MikeZz  
1/6/2014 16:07 
Hi Juerg,
Were still on the same version but now I'm in a clean collection just created.... so I won't have any possible permission issues that I know of.

I put the page hits counter on a wiki page that inherit's permission from the collection.

I put a person in the Visitors Group (who have read rights to the page).
They get access denied.
I also have several other wiki pages with web part testing (like your clocks and list search) and they can see all those.
If I add them to the Contributors Group, they can view the page and the counter works.

Any suggestions? I'm wondering if this is somehow tied to the other permissions issue we saw where if I put a list view web part on a page which pointed to a list I didn't have access to, the entire page was denied access.

Regards, Mike
MikeZz  
1/6/2014 18:09 
I was talking to our admin about the permission blocking the page. Can you email me some background of how the part works, if it trys to call anything hidden or look for specific permission types, groups or names?

Maybe explain a little about how the part updates a column in a list if the person only has read access.

I don't know much about Sharepoint Infrastructure from an IT standpoint, but I do use SPD and know that in workflows you can "Impersonate" System permissions... maybe that's how you get around it?

Thanks again!
MikeZz  
1/6/2014 18:16 
One side comment that I noticed now that my page is more than 24 hours old....

I added the counter to a page that has been around since last year but the counter was added last week.

The "Since" Date seems to be the "Created Date".

So the average hits per day = "Hits since counter reset" / "Age of Page since Creation".

In our case, we had 50 hits in two days but my stat was something like 0.14 hits per day.

Is this just a limitation of the part based on how it works? or can there be a way to use a date we type into the web part properties so it doesn't mislead people? Maybe then you could use that date to also calculate the correct hits per day.

Thanks again
Juerg  
1/7/2014 14:55 
MikeZz,
we were able to fix the “access denied” problem for users that do not have write permissions on the page library.
We also added the new “Since Date” web part setting that allows you to override the page “Created” date (used by the “{hitsperday”} token).

Please download the updated Zip file, extract the WSP file and then update the web part solution.
MikeZz  
1/23/2014 16:59 
Hi Juerg,
We have 1.0.4 in production now but it seems like the sub-site bug is still there.... We get this message directly between the Title and the colored box. Is consistant on all our farms and was in QA... but unfortunately I never re-tested on a subsite before going live :(.

"Error: Incorrect function. (Exception from HRESULT: 0x80070001) "

Any help is appreciated.
Juerg  
1/23/2014 17:10 
Mike,
please download and install version 1.0.5 (the problem with placing the web part on a subsite was fixed in version 1.0.5).
Lynley  
2/14/2014 20:52 
Hi, Juerg,

Can you tell me if this functionality will work for list items as well? We're struggling to find a reliable hit counter for list items (currently using workflows that are not super reliable).

Thanks so much for sharing your great work!
Juerg  
2/16/2014 19:21 
Lynley,
the web part actually only works with pages where it increments the counter each time a user visits the page.
Are you looking for a counter that would be embedded on the “Display” form of a list to increment the count each time a user opens the “Display” form of the list item ?
Duski  
3/27/2014 09:56 
Hi.
I tried to install and use your webpart version 1.0.5 into our SPPS 2013 Foundation site. Installation seemed correctly done, but after webpart's inserting and activating into the page, the HitCounter doesn't work with an error message "Update Error: Value cannot be null.Page Hits: 0".
Any suggestions ?
Thanx in advance. Duski
Lucian  
3/27/2014 10:45 
I have the same issue as Duski. "Update Error: Value cannot be null.Page Hits: 0".
Juerg  
3/28/2014 12:34 
Duski and Lucian,
the problem arises because the default.aspx web part page is not part of a pages library but lives on its own.
We thus proceeded to have the Page Hits web part now also support the default.aspx page.

Please download the updated Zip file, extract the WSP file and then update the web part solution.
sandeep  
5/9/2014 00:24 
when i try to add webpart to my sharepoint 2013 site its says
"Cannot import Ae page hit webpart "
?
can you help me with this ?
I have deployed 2 other amerigroup webparts on my site and they work fine but this web part shows the above problem?
Please help me out
Juerg  
5/9/2014 15:03 
sandeep,
the web part should work fine on Sharepoint 2013.
Did you use the WSP solution to deploy the web part ?
sandep  
5/9/2014 15:23 
Yes i used wsp to deploy the web part .
i did every thing according to the documentation . but when i try to add webpart it shows cannot import webpart .
sandeep  
5/9/2014 15:24 
Web part is successfully deployed and i can see it in features and central admin .Web part is shown in webpart gallery and the only problem is when i try to add it to the page .
Juerg  
5/9/2014 16:48 
Sandeep,
the deployment uses a Sharepoint timer job to deploy the solution to all web front end servers.
This indeed might add some delay.
Abbas  
6/26/2014 12:00 
Hi Juerg,

Is it possible to use this web part for working with list items?
We need to find a reliable hit counter for list items.
1- We you looking for a counter that would be embedded on the “Display” form of a list to increment the count each time a user opens the “Display” form of the list item.
2- We need also to use this hit counter in "list view"
3- We need to use this hit counter for news, blog items, wiki items and other list or libraries.
How can we use this nice web part?
thanks & regards
Abbas
LilS  
7/24/2014 19:18 
Works great on a published page, thanks. Will the Page Hits web part work in a SP2010 blog? If so how?
Juerg  
7/24/2014 19:33 
LilS,
yes, just add the "PageHits" column to the "Posts" list and also add the web part to the blog post detail page.
KY  
7/30/2014 08:00 
Juerg, is there anyway we can show the page hit per day column on the site page instead of just the total page hits?
Juerg  
7/30/2014 13:27 
KY,
do I correctly understand that you would like to display the average hits per day as opposed to the total hits so far ?
If yes, just use the {hitsperday} token in the web part's "Template" setting as for example:

Hits per day = {hitsperday}
tugcan  
8/19/2014 10:42 
Hi Juerg,

I installed the webpart into a wiki page and it worked normally, but after that all the users except me couldn't access to the page. After i deleted the webpart, users could access to the page again. Is it because this webpart's permission is granted somewhere different than site permissions?
Juerg  
8/19/2014 15:40 
tugcan,
the web part uses the accont assigned to your Sharepoint's applcation pool (by default this is the "System Account") to update the "PageHits" column. Can you check if the account that you assigned to your application pool does have write permission on your wiki page library ?
Zaid  
9/22/2014 09:00 
We are using the "hits per day" counter to know per day hit for certain pages in our portal. Since its internal portal & our office is open 5 days a week. But the hits per day divides total number of hits with total number of days (e.g. 30 days in a month), which includes week ends as well. Because of which instead of dividing total number of counts with 5 working days (in a week), it is dividing with 7 days (in a week including week ends).
So can we have an option to remove certain days from count e.g. omit Saturday ,Sunday for most of the countries and omit Friday, Saturday for gulf countries, to get the accurate number of hits per day.
Juerg  
9/23/2014 14:47 
Zaid,
we have now added the new "daysperweek" option (to be entered into the web part's "Options" setting) to correct for the "Hits per day" number.

Example:
daysperweek=5

Please download the updated Zip file, extract the WSP file and then update the web part solution.
Duski  
12/9/2014 13:09 
Hi, Juerg.
we installed Your PageHits webpart into our SPPS 2013 Foundation site and it works fine. But the number of counted pagehits is unreal - there are thousands of pagehits on inactive pages. How can we fix this problem ? Thanx in advance.
Juerg  
12/15/2014 14:46 
Duski,
when you create a new page, is the hit count then correctly starting with „1“ or does it have a random value right from the beginning ?
DIVINE  
2/12/2015 16:45 
Please i cant configure the page hits
3.Please first add a new List column of type “Number” named PageHits to the Sharepoint page library that hosts the page where you will be going to place the web part:

i dont no where to configure the sharepoint page library
Juerg  
2/12/2015 17:55 
Divine,
it’s the „Site Pages“ library in your site which hosts the Sharepoint Wiki pages.
Ravi  
2/27/2015 02:10 
Hi,
Thanks for the nice webpart. I don't have any issues in retrieving the Page Hits. but, I tried to add this webpart in to a webpartzone in the Page layout that is a default layout for all pages in my sharepoint 2013 on premises site.. This didn't work as expected. The page Hits doesn't get updated
Any thoughts ??
akeem  
4/6/2015 20:07 
hello, great web part but i notice i can't reset the page hits. when I hit reset it still shows the number of page hits from previous days. any suggestions?

Also, where do i create the custom list? do i create it in the all site content page
Alex  
4/7/2015 10:03 
akeem,
can you set the web part into trace mode and send us the output for inspection? Please set trace=1 under Options to generate the output (Edit Pane > Miscellaneous > Options).
Christopher  
6/23/2015 14:40 
Goo Day,

First off thank you for the web part.
Is it possible to count only user per session?

Thanks again for the cool web part.
Juerg  
6/23/2015 18:20 
Christopher,
this is not possible (eg. the web part is counting every page view).
Fernando  
8/5/2015 16:39 
HI, what about the installation on a farm?, it needs to be installed on all go them or only on the front end?

thanks
Fernando
Juerg  
8/5/2015 16:44 
Fernando,
you just need to add the WSP solution on one of your Sharepoint web frontend servers.
You then can choose in Central Administration, to which web applications you want to deploy the solution.
Murdock  
9/28/2015 18:42 
I cannot get the "Since Date" under Misc to work properly. The Hits per day is aways since today.
mm/dd/yyyy format?
Juerg  
9/28/2015 20:03 
Murdock,

the format to be used is

m/d/yyyy

Please note, that your custom date (as entered into the “Since Date” setting) will only be reflected after you leave the web part edit mode.
Atema  
11/12/2015 16:44 
Hi Juerg,

We're very happy with this (and other) Amrein Solutions!
I've two questions:
1) Is it possible to only count unique hits?
2) We use the webpart in the announcement items. So it would be nice when {since} could be the same as 'created'. Is this possible?

Thank you in advance.
Juerg  
11/15/2015 14:12 
Atema,

1. What exactly do you mean by “unique hits” (incrementing the count only once per user and page) ?
2. Do you mean that you embedded the web part in the Announcement List’s default item form ?
Shawn  
1/5/2016 14:50 
Will this web part work on a 64 bit server?
Juerg  
1/5/2016 19:12 
Shawn,
yes, it is compatible with all servers and operating systems.
Sam  
1/11/2016 13:05 
Hi there,

Just wndering how to display the PAGE HITS via a masterpage etc. ? so it can be visible on all the pages throughout a web application / site collection etc. ?

Look forward to your reply.

Thanks

Sumit
Juerg  
1/11/2016 15:07 
Sam,
we do not recommend inserting the web part into the master page since it then would try to update the page counter for each page that uses the master page. Since the web part stores the hit count in the “PageHits” column of the page library that contains the page, you would first need to make sure to include this column in all your page libraries across the farm.
Sam  
1/11/2016 15:19 
Thanks Juerg,

I kind of gathered that after posting my comment, that this webpart works of a library column. What should be the best method to achive this in case of a large Intranet for example. This may have a number of site collections with Root sites and a number of sub-sites etc. It'll be some job to implement a webpart based solution across the implementation in that case?

Thanks
Juerg  
1/18/2016 19:54 
Sam,
the web part is indeed not well suited for multiple site collections containing lots of sites. In this case we recommend to use the Web Analytics Service Application for SharePoint (Sharepoint Server only).
Logan  
6/29/2016 16:30 
Hi,
I have it up and running and it's great! Is there a way to make the web part smarter? Can it show who accessed the page, or at the very least, how many non-members have been there? I would like to know who is actually using my page.

Thanks!
Juerg  
7/1/2016 15:43 
Logan,
we have now added the new option to have the web part log the users into the page library’s “Audit” field.

To enable the option, please just add a new column named “Audit” of type “Multiple lines of text”. Please make sure to also set the “Allow unlimited length in document libraries” option for that column.

Please download the updated Zip file, extract the WSP file and then update the web part solution.
Jeeva  
11/24/2016 07:33 
Hi Juerg,

We have installed this webpart and working fine.
Can we set permission to this webpart , like only Approvers and Designer group people can see this hit counter webpart.
Juerg  
11/24/2016 17:38 
Jeeva,
you actually can use the web part’s “Target Audiences” setting (“Advanced” section”) to make the web part visible only to the members of the group(s) entered here.
Calico  
4/19/2017 17:14 
Hi Juerg,
Is there a way or a web part to capture and display the top 10 sites for a user?
thank you!
Juerg  
4/19/2017 18:04 
Calico,
unfortunately Sharepoint does not keep track of the number of site/page visits per user (it only keeps the total count for all users).

If you just need the accumulated counts, then you might have a look at the SP 2010 “Web Analytics” web part (please see for example https://wonderlaura.com/2011/10/26/your-sites-most-popular-content-web-analytics-web-part/ )

If you need a detailed count per user, then the only solution would be a custom control embedded in your master page which logs every page access per user.
Chuck Mitch  
5/19/2017 02:10 
Is it possible to upload this to Office 365 SharePoint Online?
Juerg  
5/19/2017 12:31 
Chuck,
we currently do not have an Office365/Sharepoint Online version.
However, we might decide to create one later this year.
min han  
7/17/2017 09:34 
Hi Juerg,
Thanks for the great web part.
How do I reset the hit counter?
Juerg  
7/17/2017 10:57 
Min Han,
please navigate to the open the page library of the page which contains the Page Hits web part. Please then open the page for editing and set the “PageHits” form field back to zero.

Technical Support Contact Information
If you find that you cannot resolve an issue using the above tools, our Technical Support staff will be ready to handle your technical support needs. You can reach our staff by phone or by email.

Phone: +41 (0)62 823 75 75 (9am - 5pm GMT)
Fax : +41 (0)62 823 75 74
Email: support@amrein.com
 
© 2017 AMREIN ENGINEERING AG


I’ve purchased the AE Staff Directory Web Part. It is highly configurable but yet easy to use. It works very well and the service from Amrein is really fast and well organized.

Torbjörn Malmsjö, Karo Bio AB





Subscribe to Newsletter
If you want to be kept informed about our new or enhanced Sharepoint web parts, subscribe to our Sharepoint Web Part Newsletter:

You can also subscribe to our Web Part News RSS Feed:

RSS Feed

Follow us on Twitter:

Web Part NewsSharePoint News Carousel Web Part
5/1/2017
The new "News Carousel" Web Part allows to rotate SharePoint List items (typically used with a SharePoint "Announcements" list) manually and/or automatically. It displays an optional image, the title and the item body text. The web part can be used with SharePoint 2010, SharePoint 2013 and SharePoint 2016.

SharePoint List Rotator Web Part
5/1/2017
The new "List Rotator" Web Part allows to rotate SharePoint List items manually and/or automatically using a freely configurable layout template. The web part can be used on SharePoint 2010, SharePoint 2013 and SharePoint 2016.

SharePoint Facebook Timeline
6/1/2016
The free "Facebook Timeline" Web Part allows to embed the Timeline of the specified Facebook timeline. The users can like and share the posts without having to leave SharePoint.

The web part can be used on SharePoint 2010, SharePoint 2013, SharePoint 2016 and SharePoint Online/Office365.

SharePoint Toast Notifcations
6/1/2016
The Toast Notification SharePoint solution lets you centrally manage notifications and alerts targeted to all users or specific user groups.
It reads entries from the included SharePoint List and displays notifications targeted to either selected groups or all users during the specified time window as configured for each notification.
The solution can be used on SharePoint 2010, SharePoint 2013, SharePoint 2016 and SharePoint Online/Office365.