1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Tracking sales using a redirect page and Google Analytics

Discussion in 'Google Analytics' started by Jon12345, Jul 20, 2006.

  1. #1
    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
     
    Jon12345, Jul 20, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    mad4, Jul 20, 2006 IP
  3. Jon12345

    Jon12345 Peon

    Messages:
    599
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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
     
    Jon12345, Jul 20, 2006 IP
  4. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That will work fine. Every time somebody clicks the link G Analytics thinks its tracking a hit on the redirect.php3 page.
     
    mad4, Jul 20, 2006 IP
  5. live-cms_com

    live-cms_com Notable Member

    Messages:
    3,128
    Likes Received:
    112
    Best Answers:
    0
    Trophy Points:
    205
    Digital Goods:
    1
    #5
    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):
     
    live-cms_com, Jun 4, 2008 IP
  6. iMarketer17

    iMarketer17 Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    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!
     
    iMarketer17, Aug 26, 2008 IP
  7. live-cms_com

    live-cms_com Notable Member

    Messages:
    3,128
    Likes Received:
    112
    Best Answers:
    0
    Trophy Points:
    205
    Digital Goods:
    1
    #7
    You have to have the analytics tracking code already on the page/website.
     
    live-cms_com, Aug 26, 2008 IP
  8. mill123

    mill123 Active Member

    Messages:
    631
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    58
    #8
    excellent. been meaning to implement this!
     
    mill123, Aug 26, 2008 IP
  9. iMarketer17

    iMarketer17 Guest

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    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...
     
    iMarketer17, Aug 29, 2008 IP
  10. live-cms_com

    live-cms_com Notable Member

    Messages:
    3,128
    Likes Received:
    112
    Best Answers:
    0
    Trophy Points:
    205
    Digital Goods:
    1
    #10
    That is a different topic, Google 'analytics goals'.
     
    live-cms_com, Aug 29, 2008 IP