When someone is on my landing page, I cannot track when I sell something since they are taken to the merchants site. But I know the average value of someone who clicks through my advert on landingpage.php to go to the merchants site. For tracking, I have setup redirectpage.php which will redirect the visitor to the merchants site. See below: landingpage.php -> redirectpage.php -> merchants site On redirectpage.php I could put some code to track the sale in Google Analytics. But if I create a php redirect page, I can't show the javascript unless I have a delay. Any ideas on how to do this or how you do this? Or is there a better way of doing it? Thanks, Jon
On the link that sends you to the redirect page you can track how many people click on the link. onClick="javascript:urchinTracker ('/outgoing/linkname');" http://forums.digitalpoint.com/showthread.php?t=86288
Oh that's wicked! Great suggestion. Couple of questions: 1. I have set up the goals page to be the redirect.php page. Does this linking method still trigger the goal so I can track ROI? (I am basically just saying anyone who gets to the redirect.php page is worth $X) 2. To modify my link, are you suggesting I should change it from: <a href="http://www.mysite.com/redirect.php"=xyz" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','images/image1_border.gif',1)"><img src="images/image1.gif" name="Image1" width="108" height="68" border="0"></a> Code (markup): ...to: <a href="http://www.mysite.com/redirect.php"=xyz" onClick="javascript:urchinTracker ('/redirect.php');" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','images/image1_border.gif',1)"><img src="images/image1.gif" name="Image1" width="108" height="68" border="0"></a> Code (markup): Is that right? I'm not very good at javascript! Thanks, Jon
That will work fine. Every time somebody clicks the link G Analytics thinks its tracking a hit on the redirect.php3 page.
For anybody who reached this page from Google, with the new page tracking code you should have this - onClick="javascript:pageTracker._trackPageview('/page/');" Code (markup): not this onClick="javascript:urchinTracker('/page/');" Code (markup):
Hi guys... I'm trying to do the same thing but my knowledge of javascript is virtually nil. <a href="http://www.mysite.com/redirect.php"=xyz" onClick="javascript:urchinTracker ('/redirect.php');"</a> Do you need to put some sort of identifier in that bit of code? How does Google know which account to credit the click to? Is there additional code that needs to be on the page? Cheers!
Okay... so if I have the Analytics code already on the page, how will Google know that I'm counting a click on the link as a conversion? I want to be able to use that feature, rather than counting up the number of hits to a link...