Add SessionId to ac_PageViews table

Post feature requests to this forum and a pre-configured poll will automatically be created for you.
Post Reply

How important is this enhancement to you?

It's a critical enhancement that I must have.
0
No votes
It's an important enhancement but others are more critical.
0
No votes
I'd like to have it but it's not that important.
0
No votes
I'd never use this feature.
0
No votes
 
Total votes: 0

User avatar
nickc
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Thu Nov 29, 2007 3:48 pm

Add SessionId to ac_PageViews table

Post by nickc » Thu Apr 10, 2008 2:01 pm

The ac_PageViews table does not seem to have an easy way to measure "visits" or sessions. I'm looking to get a simple metric like this:

Code: Select all

	SELECT
		convert(char,ActivityDate,101) as [Period],
		count(*) as [PageViews],
		count(DISTINCT(UserId)) as [Visitors],
		count(DISTINCT(SessionId)) as [Visits]
	FROM
		dbo.ac_PageViews
	WHERE
		convert(char, ActivityDate, 101) between @StartDate and @EndDate
	GROUP BY
		convert(char,ActivityDate,101)

Can a SessionId column be added to this table to facilitate this?

Thanks,
-Nick

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Add SessionId to ac_PageViews table

Post by AbleMods » Tue Apr 15, 2008 9:31 pm

IIS logfiles with a good logfile analyzer will go alot further for you - have you looked at some of the latest analyzers out on the market?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

User avatar
nickc
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Thu Nov 29, 2007 3:48 pm

Re: Add SessionId to ac_PageViews table

Post by nickc » Wed Apr 16, 2008 4:55 pm

Analytics isn't my problem - I was given the task of wrapping up a number of stats into a single datatable to be bound to a pivot table in Excel - views, visitors, visits, sales, coupons, shipping, payments, etc.
I can get it all from a single view in Able's database - except visits.
For now, "select 0 as [Visits]" works ok. :)

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Add SessionId to ac_PageViews table

Post by AbleMods » Wed Apr 16, 2008 5:01 pm

Ahhh ok, I understand now.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply