View Single Post
Old 12-03-2007, 10:07 AM   #1 (permalink)
dannyd
Noogle
 
Join Date: Dec 2007
Posts: 0
Thanks: 0
Thanked 0 Times in 0 Posts
dannyd is on a distinguished road
outgoing link tracking

Im trying to track outgoing links however the example used in googles help:

<a href="http://www.example.com" onClick="javascript:urchinTracker('/outgoing/example.com');">

differs from what I need. My pages are dynamically creating in PHP.

<a href="http://www.example.com" onClick="javascript:urchinTracker('/outgoing/');">

I tried coding it like this:

$site_client = "ab_flexer";
$site_link = "http://www.abflexor.com";

<a href="' . $site_link . '" onClick="javascript:urchinTracker(\'/outgoing/' . $site_client . '\'"><img border="0" src="/images/buttons/buy_button.jpg"></a>

Would this show up in my google analytics tracking under my outgoing links ? Or am i doing this completely wrong ? Because it takes 24-48 hours to see if google analytics will pick up the change .. i want to get the syntax right.

Thanks!
dannyd is offline   Reply With Quote