Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...List of pages that user has visited?List of pages that user has visited?
Previous
 
Next
New Post
11/5/2008 3:59 PM
 

I have access to the SQL database for our DNN site.

I want to create a query that will list the users and the pages they have visited:  User1 visited Page1 on Tuesday, Page2 on Tuesday, Page3 on Wednesday; User2 visited Page1 on Wednesday, Page2 on Wednesday, Page1 on Thursday, etc. etc.

Does DNN keep track of this much activity detail?  I used Site Log to get a list of how many requests each page gets, and how many requests each user makes, but I'd like to find a way to tie the two together with a little more detail.

Anybody have any idea what the SQL Query would look like to do this?

Thanks,

CJ

 
New Post
11/5/2008 6:30 PM
Accepted Answer 

Hi CJ,

 

Here's what I do.  Use the "Report" module and then configure the SQL to be something like this...


SELECT     CONVERT(varchar(11), SiteLog.DateTime, 13) As [Date] , vw_Users.FirstName + ' ' + vw_Users.LastName + '  (' + vw_Users.DisplayName + ')' As [Client Name / Display Name], Tabs.TabName As [Visited page], UserProfile.PropertyValue AS Country
FROM         vw_Users INNER JOIN
                      SiteLog ON vw_Users.UserId = SiteLog.UserId INNER JOIN
                      Tabs ON SiteLog.TabId = Tabs.TabID INNER JOIN
                      UserProfile ON vw_Users.UserId = UserProfile.UserID
WHERE     (UserProfile.PropertyDefinitionID = 67)
            And DateAdd(d,-30,Getdate()) < SiteLog.DateTime
Order By SiteLog.DateTime Desc   

 

This will give you a list of user activity for the last 30 days.

 

Hope this helps point you in the right direction.

Rod
 

 

 
New Post
11/12/2008 3:36 PM
 

Great!  Thanks!

 

CJ

 
New Post
11/13/2008 5:52 PM
 

Excellent, thank you.  I was having the very same problem.  Thanks for the solution.

 
New Post
2/25/2009 1:33 PM
 

Rod Weir wrote

Hi CJ,

 

Here's what I do.  Use the "Report" module and then configure the SQL to be something like this...


SELECT     CONVERT(varchar(11), SiteLog.DateTime, 13) As [Date] , vw_Users.FirstName + ' ' + vw_Users.LastName + '  (' + vw_Users.DisplayName + ')' As [Client Name / Display Name], Tabs.TabName As [Visited page], UserProfile.PropertyValue AS Country
FROM         vw_Users INNER JOIN
                      SiteLog ON vw_Users.UserId = SiteLog.UserId INNER JOIN
                      Tabs ON SiteLog.TabId = Tabs.TabID INNER JOIN
                      UserProfile ON vw_Users.UserId = UserProfile.UserID
WHERE     (UserProfile.PropertyDefinitionID = 67)
            And DateAdd(d,-30,Getdate()) < SiteLog.DateTime
Order By SiteLog.DateTime Desc   

 

This will give you a list of user activity for the last 30 days.

 

Hope this helps point you in the right direction.

Rod
 

 

 

Sorry to revive such an old thread, but what is your PropertyDefinitionID pointing to?  My ID's are different, and I'm curious what you're using to key your search.  I can match the Property with my ID if I know what Profile Property you're searching for.  For some reason, I can't wrap my brain around what you're using to trigger the record being accepted.

Thanks,

CJ

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...List of pages that user has visited?List of pages that user has visited?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out