Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Extra Section for particular page format

Reply to Post Add a New Topic
UserPost

4:22 pm
October 12, 2008


cssfsu

Member

posts 55

hmm I did have this under a separate topic but I think I might have been confusing there, so i am writing a new post.. Since this is kinda important, any help that you can provide Jean is very much appreciated.

Here's how some detail pages on our site look like

http://my-site/abc/123/portal/opal/details?catalog.label=1TW10TM6F&catalog.path=featured

http://my-site/abc/123/portal/opal/details?catalog.label=1TW08983F

http://my-site/abc/123/portal/opal/details?catalog.label=1TWXXXXXY

and so on .. In a nutshell, I need to create an extra section report to show me page views for any records in my log which would have “/details?catalog.label= ” in them..

For this particular conf file, I already have an OnlyFiles section to parse the

abc/123/portal/opal/ requirement..

Can u help me come up with the Extra Section for this ?

1:29 am
October 13, 2008


Jean-Luc

Admin

posts 1125

I would try this :

ExtraSectionCondition2="URL,details$"

ExtraSectionFirstColumnValues2="QUERY_S
TRING,catalog.label=([^&]*)"

The URL will end with "details" and the value of "catalog.label" will appear in the extra section if "catalog.label" is present in the QUERY_STRING.

7:18 pm
October 13, 2008


cssfsu

Member

posts 55

Thanks Jean, I already have that in place..

For this extra section, I do not want to list out the navcodes ie no QUERY_STRING on catalog.label..

I just want to show something like this, ie a count of all the hits for the URL below.. I tried several config changes using URL and URLWITHQUERY but didnt work.. But wanna know how u might do this..

TotalPages                                                                                          Pages

/software/brandcatalog/portal/opal/details/?catalog.label                       3200

3:42 am
October 14, 2008


Jean-Luc

Admin

posts 1125

ExtraSectionCondition2="URLWITHQUERY,^\\
/software\\/brandcatalog\\/portal\\/opal\\/
details\\/\\?catalog\\.label"

ExtraSectionFirstColumnValues2="URLWITH
QUERY,^(\\/software\\/brandcatalog\\/porta
l\\/opal\\/details\\/\\?catalog\\.label)"

This should count all URL's starting with 
/software/brandcatalog/portal/opal/
details/?catalog.label
.

6:08 pm
October 14, 2008


cssfsu

Member

posts 55

Anyway I can exclude any pages from the Extra Section count ? i mean say I wanted count for all detail pages like ExtraSectionCondition2=”URL,details$” but without any detail pages ending with ?catalog.path=featured in their URLs.. how should i do that ?

Also would there be a way to exclude the robots hits in the Extra Sections somehow ? that would solve my problem ..

thanks !!

10:17 pm
October 14, 2008


Jean-Luc

Admin

posts 1125

In a regular expression, you can use a negative lookahead assertion to exclude pages ending with some expression.

Or try this (not tested) :

ExtraSectionCondition2="URLWITHQUERY,^\\
/software\\/brandcatalog\\/portal\\/opal\\/
details\\/\\?catalog\\.label.*(?!&catalog\\
.path=featured$).*$"

As you see, this is becoming pretty complicated.  Google for regexp lookahead  to find a tutorial.

You can exclude robots based on their user agent, but you cannot exclude all robots as this would require that you list the user agents of all robots in the regexp excluding them.

Reply to Post

Reply to Topic:
Extra Section for particular page format

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
12 + 9
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
16 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 638
Posts: 2709

Membership:

There are 257 Members
There have been 302 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)