How to track multiple querystrings?


 

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




How to track multiple querystrings?

Add a New Topic Reply to Post
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 220

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 220

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.

Add a New Topic Reply to Post


Reply to Topic: How to track multiple querystrings?

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

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 12 + 10        (Required)

Topic Reply:


 

WebStats1


About the InternetOfficer.com forum

Currently Online:

3 Guests

Maximum Online: 20

Forums:

Groups: 2

Forums: 7

Topics: 104

Posts: 493

Members:

There are 26 members

There are 94 guests


Jean-Luc has made 220 posts

Top Posters:

Steve - 14

angelko - 4

cwei - 4

Kinglui - 3

vtroymck - 3

Administrator: Jean-Luc | Moderators: Jean-Luc


© Simple:Press Forum - Version 3.1.2 (Build 340)