dannyd
Dec 3rd 2007, 11:45 am
Im using the analytics in google adwords and Im trying to track outgoing links away from my site. I used the example used in googles help for outgoing linking as below:
<a href="(URL address blocked: See forum rules)" onClick="javascript:urchinTracker('/outgoing/example(dot)com');">
which differs from what I need. My pages are dynamically creating in PHP.
I tried coding it like this:
$site_client = "ab_flexer";
$site_link = "link to website";
<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.
Quick question:
Can anything be put in the bolded site_name below ? This is used just to name the outgoing link right ?
onClick="javascript:urchinTracker('/outgoing/site_name';)">
Thanks!
<a href="(URL address blocked: See forum rules)" onClick="javascript:urchinTracker('/outgoing/example(dot)com');">
which differs from what I need. My pages are dynamically creating in PHP.
I tried coding it like this:
$site_client = "ab_flexer";
$site_link = "link to website";
<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.
Quick question:
Can anything be put in the bolded site_name below ? This is used just to name the outgoing link right ?
onClick="javascript:urchinTracker('/outgoing/site_name';)">
Thanks!