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

How to track multiple querystrings?

Reply to Post Add a New Topic
UserPost

10:44 am
August 14, 2007


Roland Mueller

Guest

Hi,

 i have this url:

http: //www.beton.org/sixcms_4/sixcms/detail.php? object_id=12&area_id=2770&id=3828

How can i track multiple querystrings in one extra section? I tried this way:

ExtraSectionName1="Objekte"
ExtraSectionCodeFilter1="200 304"
ExtraSectionCondition1="URL,(^\\/sixcms_4\\/sixcm
s\\/.*\\.php)" 
ExtraSectionFirstColumnTitle1="Objekte"
ExtraSectionFirstColumnValues1="QUERY_STRING,id
=([^&]+) | QUERY_STRING,area_id=([^&]+)"
ExtraSectionFirstColumnFormat1="<a href='http:/
/www.beton.org/sixcms_4/sixcms/detail.php?objec
t_id=12&area_id=%s&id=%s' target='_blank'>http:
//www.beton.org/sixcms_4/sixcms/detail.php?obje
ct_id=12&area_id=2770&id=%s</a>"
ExtraSectionStatTypes1=HL
ExtraSectionAddAverageRow1=1
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=2000
MinHitExtra1=1

 

But there goes something wrong. The area_id does not come correctly. It is all times the same. Please help me, thanks.

Roland 

11:46 am
August 14, 2007


Jean-Luc

Admin

posts 1125

I am not sure about what you want to do.

ExtraSectionFirstColumnValues returns a unique value or no value for each processed line. It will never return two or more values.

When a value is returned, %s in ExtraSectionFirstColumnFormat is replaced by this value in the choosen print format.

Jean-Luc

12:59 pm
August 14, 2007


Roland Mueller

Guest

Thanks for your answer. What i want to do is:

Display statistic-links in a section from specific php-pages; this php pages contain querystring parameters: object_id, area_id, id. The object_id querystring parameter is every time the same. So we just need to consider the querystring parameters
area_id and id! But those are two 😉

I must build a link in the statistic section to the php-page; i try doing that this way:

ExtraSectionFirstColumnFormat1="<a href='http:/
/www.beton.org/sixcms_4/sixcms/detail.php?objec
t_id=12&area_id=%s&id=%s' target='_blank'>http:
//www.beton.org/sixcms_4/sixcms/detail.php?obje
ct_id=12&area_id=2770&id=%s</a>" 

Problem seems to be that i cannot get the querystring parameter values for both?

What about to display the full URLs with ALL querystrings? Is this possible?
If yes, what ExtraSectionFirstColumnValues do i need then?

Thanks in advance, Roland 

 

2:32 pm
August 14, 2007


Jean-Luc

Admin

posts 1125

I would do this :

ExtraSectionFirstColumnValues1="QUERY_STRING,(a
rea_id=[^&]+&id=[^&]+)$"
ExtraSectionFirstColumnFormat1="<a href='http:/
/www.beton.org/sixcms_4/sixcms/detail.php?objec
t_id=12&%s' target='_blank'>object_id=12&%s</a>
"

 

This assumes that all interesting URL's end with area_id=…&id=…

Jean-Luc

3:00 pm
August 14, 2007


Roland Mueller

Guest

Thanks so much this works perfectly. Do you know if it is planned in the future that we can track multiple querystrings and return it on %s %t %r and so on?
Would be another great feature.

Reply to Post

Reply to Topic:
How to track multiple querystrings?

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:
8 + 7
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 201

Currently Online:
11 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

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

Membership:

There are 257 Members
There have been 303 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)