Tracking Unique Page Visits / Views?
Mar 28, 2010
I have an ASP.NET application where View.aspx page will display the details of each products in a shopping cart.The page displays dynamic data(Ex: For each product id,the content will be different).Now i want to track the unique page views of each product.What are the best solutions to approach this problem ? I am already using google analytics.But i wanna custom solution/code for my web app,so that i can know how many hits came for each product
View 2 Replies
Similar Messages:
Dec 23, 2015
I want to count total unique visits in a particular page of my website using ASP.Net, C#. How i will do it
View 1 Replies
Jul 26, 2010
I have an application I'm currently working on that requires Administrators to be able to track the views of a ticket and it's duration.
I've got the tracking of the number of views by users sorted out, I have a table that contains a TicketID, UserID and a DateOpened. Each time a user visits the page, a new row will be inserted.
However, the way I would like to track the duration of views is by having a DateClosed field in the table which will allow me to work out view duration in the code as opposed to storing the time directly.
I can't use Google Analytics or anything Third Party for the task either due to internal policy as it's an intranet application.
View 1 Replies
Jul 6, 2010
I have developed a Portal (Request submission) which sends an Email and also it updates all values to the Database. What ever values gets updated to the database, will be sent as an email message to an address. It works fine. I need a Unique number to be generated for a Request submission which has to be sent in the Email message and also it has to be updated in the database. I use SQL Server 2005 and Framework 2, C# laungauge.
View 10 Replies
Jul 26, 2010
im tryin to figure how to do this, i have some web page and i want to allow only visits from facebook to see that page and anyone else will direct to other page how can i trace users that came from facebook to my site and direct them to special page and others to diffrent page?
View 13 Replies
Sep 7, 2010
What I want is I that I want to keep track of number of visits per page and average time spent on each page and the site. I don't want to use any third (3rd) party tool. How to achieve this with minimum code.
View 5 Replies
May 17, 2013
How I can get the IPS of all the computers through which users are accessing my website.
View 1 Replies
Jul 1, 2010
I have a background set of images that is called randomly.It changes each time a user opens a new page and refreshes the same page.Not 100% of what I want.
Ideally I would like a random image to be shown each time a user comes to the site but not on every page.
Is there a way to set the image per the session a users visits the site instead of each page?
Current code
SqlConnection connection = null;
connection = new SqlConnection(ConfigurationManager.ConnectionStrings["PSI_DB_1ConnectionString"].ConnectionString.ToString());
connection.Open();
int id = Convert.ToInt32(Request.QueryString["id"]);
string SQLquery ="";
if (id == 0)
{
SQLquery = "Select Top 1 ImageData,ImageType from WebBGImages ORDER BY NEWID()";
}
else
{
SQLquery = string.Concat("Select ImageData,ImageType from WebBGImages where ImageID=",id);
}
SqlCommand Cmd = new SqlCommand(SQLquery, connection);
SqlDataReader Dr = Cmd.ExecuteReader();
if (Dr.HasRows)
{
while (Dr.Read())
{
Byte[] bytes = ((Byte[])Dr["ImageData"]);
Response.Buffer = true;
Response.Charset = "";
Response.ContentType = Dr["ImageType"].ToString();
Response.BinaryWrite(bytes);
Response.End();
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.BinaryWrite(bytes);
}
}
Response.Flush();
Response.End();
Cmd.Dispose();
connection.Close();
connection.Dispose();
View 3 Replies
Aug 19, 2010
i am wishing to count total number of visits on any particular page with also the ability to work when IIS reset is done, i think by using database we can solve it.
how to count total number of visits on any particular page?
View 3 Replies
Mar 25, 2011
My intention is to give the user a flexible user control on a master page that does the following:
When navigating, a child page will pass the URL (with querystring) and PageTitle to the user control. The user control will take those two parameters and insert them as a "breadcrumb" object at first index of a List<breadcrumb> collection
This part works fine through the use of a Repeater with a LinkButton contained in an ItemTemplate. The user sees each of the pages he has been visiting in descending order, the provided benefit is a quick way to re-open records they have recently modified or created.
The part I'm having trouble handling is what happens when the user clicks the LinkButton, which is that the child page adds a new reference to the URL at the beginning of the List<> collection and I cannot seem to control the behavior of removing the LinkButton before it gets re-created. What I've tried doing is:
List<>.RemoveAt(RepeaterCommandEventArgs.Item.ItemIndex);
Repeater1.Controls.Clear();
Repeater1.DataSource = List<>;
Repeater1.DataBind();
While that should work, my CreateBreadCrumb(string url, string title) function gets called by the child page before the UserControl detects the Repeater1_ItemCommand event, so in effect it appears that the wrong ItemIndex is being used for removal.
View 1 Replies
Jun 11, 2013
i am developing one application in mvc my problem is after login it will redirect to some page if i copy url and paste it in another browser its showing error in application but i need to display home page?
how to solve this ?
View 1 Replies
Nov 23, 2010
How to get Unique ID of LDAP logged in User? Is GUID is the unique id of each user?
View 1 Replies
Aug 25, 2010
Is GUID (globally unique identifier) really unique, or it can be duplicate.
System.Guid.NewGuid().ToString()
View 6 Replies
Mar 21, 2011
How generate the unique no. 1,2,3 and so on .... on button click of each new user ..
the code mentioned below is a readwrite coding in vb.net ...
but the problem is it generate the same id for different users on button click event... but i want the no. of times button clicked the new ids will be generated
[code]....
View 1 Replies
Mar 18, 2011
How can I get unique session ID for every unique user who logs in ?? I'm using asp.net/c#
View 1 Replies
Feb 11, 2010
How To Display Data In Following Format?
In the Format below abc has multiple occurance which count is displayed in brackets as 2669.
[code]....
View 7 Replies
Sep 28, 2010
I am learning MultiView control.Here are question:I added 5 views in the MultiView but all views are tight together. I can not drag and drop another control such as text boxes or labels into view area.
View 15 Replies
Aug 26, 2010
I wish to log the user name and which page they visited.
Is there a quick way to do that in ASP.Net ?
View 3 Replies
Feb 17, 2011
in the code in front i have:
Code:
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:SQL2008R2_799650_xnacsConnectionString %>"
SelectCommand="SELECT [ArticleTitle], [articlehtml], [submittedby], [datesubmitted] FROM [Articles] where articleid ='@id'">
</asp:SqlDataSource>
and code behind is taking a url param (guid) and passing it to the select above
it looks like this:
Code:
protected void Page_Load(object sender, EventArgs e)
{
string id = Request["article"];
as simple as that, the problem is the page falls over saying it cannot convert string to Unique identifier, I'm new to asp.net but not c# so there are a few bits i'm trying to get my head round..
View 4 Replies
Aug 20, 2010
would like to present users with unique content based on certain conditions being met as they land on the home page (default.aspx). The condition logic will be in the VB code behind Page Load event. The content will go in a content placeholder as specificed from the master page. However, the content change wouldn't be something small (ie making a panel or label visible or not) but rather it will be different HTML, Divs and databound gridview content. The HTML content will be stored in the database.
View 3 Replies
Jul 7, 2010
I am using a FormView and on insert I want it to be redirected to another page and take the ID of the FormView which I have just inserted so I can have page b load with the date from page a that I have just inserted
View 3 Replies
Nov 1, 2010
In page A, there is a multiview control in which including 10 views. How to open view5 in multiview in page A from another page B?
View 3 Replies
Mar 7, 2010
I added 3 tree views in my master page, i want them to show them based on different conditions, but they are not visible on other pages.
Code:
Dim TreeView1 As System.Web.UI.WebControls.TreeView = New TreeView
Dim TreeView2 As System.Web.UI.WebControls.TreeView = New TreeView
Dim TreeView3 As System.Web.UI.WebControls.TreeView = New TreeView
Dim str As String = HttpContext.Current.Profile.GetPropertyValue("UserType")
Select Case (str)
Case "Faculty"
Response.Write("Faculty")
TreeView1.Visible = True
Exit Select
Case "Admin"
Response.Write("Admin")
TreeView2.Visible = True
Exit Select
Case "Student"
Response.Write("Student")
TreeView3.Visible = True
Exit Select
End Select
View 2 Replies
Apr 8, 2010
I am trying to count page views for each user.
After 100 views, the user won't able see the page anymore.
At the end of the dat the counter will be reset.
I think of using the cookies, but it is very easy to hack.
How do I manage this the best way and reset every 24 hours the counter?
View 4 Replies
Jan 6, 2011
I want to log the visits to my website.My site has a login page as its home page.The ones who passed the authentication can view the website. I want to log user names,IP addresses and the date of entrances both the successfull and unsuccessfull ones. I am not allowed to use a ready software package for this,my only choice is to write the code myself. where and what should I write as code in my project?Since I am a beginner programmer.
View 1 Replies