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 sections – Tracking two parameters in a URL

Reply to Post Add a New Topic
UserPost

2:16 am
April 9, 2009


Sravan.tech

Member

posts 9

Hi Jean, hi all,

I need to track two of the parameters in a URL.

Example:

Hit1: http://www.mysite.com/myAction.do?country=US&city=newYork

Hit2: http://www.mysite.com/myAction.do?country=US&city=newYork

Hit3: http://www.mysite.com/myAction.do?country=US&city=losAngeles

Hit4: http://www.mysite.com/myAction.do?country=UK&city=london

Hit5: http://www.mysite.com/myAction.do?country=UK&city=plymouth

I need something like this on my report,

                                 Title: US Report

:City:                                                                      Hits/pages

newYork                                                                   2

losAngeles                                                                 1

                                  Title: UK Report

:City:                                                                      Hits/pages

london                                                                          1

plymouth                                                                      1

Please let me know how can i config the Extra section, so that i can get a seperate report for each country, with listing of cities(of that country) and the hits/visits/pages for each city of that country, as shown in above example.

I understand that a seperate Extra section is needed for each country/each report.

Thanks in advance,

Sravan

3:00 am
April 9, 2009


Jean-Luc

Admin

posts 1125

Hi Sravan,

I would use this :

ExtraSectionCondition1="QUERY_STRING,^c
ountry=US"

ExtraSectionFirstColumnValues1="QUERY_S
TRING,&city=([^&]+)"


ExtraSectionCondition2="QUERY_STRING,^c
ountry=UK"

ExtraSectionFirstColumnValues2="QUERY_S
TRING,&city=([^&]+)"

7:06 am
April 9, 2009


Sravan.tech

Member

posts 9

Hi Jean,

Thanks a lot. This is working Smile

Could you please help me mentioning the action as well (myAction.do), so that i can make sure the report belongs to only this action. (There is a possibility that the same parameters may repeat in multiple Actions).

Also, please find there is one more parameter just after myAction.do, which i do not want to track with this Extrasection.

Example:

http://www.mysite.com/myAction.do?lang=de&country=US&city=newYork

Thanks again,

Sravan

8:19 am
April 9, 2009


Jean-Luc

Admin

posts 1125

Try this :

ExtraSectionCondition1="URLWITHQUERY,^\\
\/myAction\\\.do\\\?country=US"

..

ExtraSectionCondition2="URLWITHQUERY,^\\
\/myAction\\\.do\\\?country=UK"

Do not change the ExtraSectionFirstColumnValues .

12:59 am
April 10, 2009


Sravan.tech

Member

posts 9

Jean,

Its working for me but with a small tweaking.

As i mentioned before, there is an additional parameter "lang=de" just after "myAction.do".

So, tweaked the Condition1 to the following,

ExtraSectionCondition1="URLWITHQUERY,\\/myAction\\.do\\?lang=([^&]+)&country=US"

And it works fine.

Thanks a lot for your help and quick reponses.Smile

Sravan

Reply to Post

Reply to Topic:
Extra sections – Tracking two parameters in a URL

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:
4 + 3
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
11 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710

Membership:

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