R
Roland Ramirez
I am trying to monitor the number of visits on various Excel and HTML
reports on our website. I would like to create a web page that has the
various hit statistics for various URLs.
I thought I could use the Page Counter Component to do this using
MyPageCounter.Hits(url);
but I cannot get it to work with any URL. I can get it to work with
the page the code is located in if I do not specify a URL, but I
cannot get it to work to keep track of the visits to other URLs, in
this case Excel and HTML reports my business group maintains.
Any help would be greatly appreciated.
Here is what I tried to do.
<%
Set MyPageCounter = Server.CreateObject("MSWC.PageCounter")
MyPageCounter.PageHit()
%>
This page has been visited
<%=mypagecounter.hits("d:/inetpub/wwwroot/web_project/folder/book1.xls")%>
times.<br>
reports on our website. I would like to create a web page that has the
various hit statistics for various URLs.
I thought I could use the Page Counter Component to do this using
MyPageCounter.Hits(url);
but I cannot get it to work with any URL. I can get it to work with
the page the code is located in if I do not specify a URL, but I
cannot get it to work to keep track of the visits to other URLs, in
this case Excel and HTML reports my business group maintains.
Any help would be greatly appreciated.
Here is what I tried to do.
<%
Set MyPageCounter = Server.CreateObject("MSWC.PageCounter")
MyPageCounter.PageHit()
%>
This page has been visited
<%=mypagecounter.hits("d:/inetpub/wwwroot/web_project/folder/book1.xls")%>
times.<br>