iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Google Discussion Forum Google Discussion forum is for topics specifically related to Google. There is a subforum dedicated to AdSense/AdWords subjects.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-28-2006, 10:44 AM
richkoi's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Atlanta, GA
Posts: 451
richkoi RepRank 0
Default Google Analytics Regular Expression

Has anyone had any success installing a regular expression url as their goal in Google Analytics? Below is an example of what I am trying to setup as a goal:

http://website.com/store/index.php?t...r_mode=placing

This is how I was told to set it up, but that does not seem to be working:
http:\/\/website\.com\/store\/index\.php\?target=orders&mode=details&order_id=[\d]*&order_mode=placing

Has anyone had experience with regular expression? Am I setting this url up correctly?

Thanks,
__________________
Me
Reply With Quote
  #2 (permalink)  
Old 09-28-2006, 01:23 PM
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Spain
Posts: 343
computergenius RepRank 1
Default

Not sure what you are trying to do here, but are you aware that Google may not index the page correctly, as one of the variable names ends in id.

Looking at the URL, indexing may not matter...
__________________
Pete Clark
Got any spare time? Anything you need? Barter in Spain at http://BarterWithBart.com
Reply With Quote
  #3 (permalink)  
Old 09-28-2006, 03:08 PM
dhensley's Avatar
Administrator
 
Join Date: Sep 2006
Posts: 16
dhensley has disabled reputation
Default

Hmm, I've never messed with Google Analytics but I can see that this is going to get icky, since there's no guarantee that the order of your GET variables will be maintained in your URL. You'd probably be better off using something like mod_rewrite (if you're running apache), though I'm honestly not quite sure what you're trying to accomplish here. Perhaps you could give a few more details of your cunning plan?

Dave.
Reply With Quote
  #4 (permalink)  
Old 09-29-2006, 01:38 AM
AjiNIMC's Avatar
WebProWorld Pro
 
Join Date: Aug 2004
Location: India
Posts: 279
AjiNIMC RepRank 0
Default

Never tried it, do let us know if it works. It will be interesting to watch.

If it doesnt work, do contact Google developer and request for this modification.

AjiNIMC
__________________
Be web educated - Client education series - Let not your SEO company cheat you. When they screw your website, they lose one client and you everything.
Reply With Quote
  #5 (permalink)  
Old 09-29-2006, 04:57 AM
WebProWorld Member
 
Join Date: Jul 2003
Location: England
Posts: 33
brettgodfrey RepRank 0
Default

Richkoi

You seem to be using the escape character (back slash) when you don't need to...

Try on a new php page...
Code:
<? echo "http://website.com/store/index.php?target=orders&mode=details&order_id=[\d]*&order_mode=placing"; ?>
Not too sure what you are doing with =[\d]* but it does not look too good.

Hope this helps
Brett
__________________
Brett

www.godfreyhart.com
Reply With Quote
  #6 (permalink)  
Old 09-29-2006, 10:58 AM
WebProWorld Member
 
Join Date: Jun 2006
Location: islip, ny
Posts: 42
philscanlan RepRank 0
Default

Remember ampersands have special meaning in a regex replace string too.
__________________
if you're reading this, I'm bored
Reply With Quote
  #7 (permalink)  
Old 09-29-2006, 03:45 PM
dhensley's Avatar
Administrator
 
Join Date: Sep 2006
Posts: 16
dhensley has disabled reputation
Default

Quote:
Originally Posted by brettgodfrey
You seem to be using the escape character (back slash) when you don't need to...

Try on a new php page...
Code:
<? echo "http://website.com/store/index.php?target=orders&mode=details&order_id=[\d]*&order_mode=placing"; ?>
Actually, he does need to escape these. AFAIK, G.A.'s regular expressions are Perl compatible, therefore these characters will all have special regex meanings. He's not trying to simply print a URL here.


Quote:
Originally Posted by brettgodfrey
Not too sure what you are doing with =[\d]* but it does not look too good.
He's trying to match a string of zero or more digits for the order number. Looks right to me.



Quote:
Originally Posted by philscanlan
Remember ampersands have special meaning in a regex replace string too.
Actually, they don't.

Dave.
Reply With Quote
  #8 (permalink)  
Old 11-17-2006, 05:54 PM
WebProWorld Member
 
Join Date: Jun 2006
Location: islip, ny
Posts: 42
philscanlan RepRank 0
Default

http://www.regular-expressions.info/perl.html
__________________
if you're reading this, I'm bored
Reply With Quote
Reply

  WebProWorld > Search Engines > Google Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:58 AM.



Search Engine Optimization by vBSEO 3.3.0