Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Referring URL

  1. #1
    New to the CF scene
    Join Date
    Jul 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Referring URL

    Hi,

    I don't know too much about Javascript. I have undertaken a massive project where I use one of the scripts I found on javascriptkit.com to generate random links from a list I have (the website is http://bestestblogofalltime.blogspot.com)

    The problem I am having is that when the Random Blog button referrers someone to another website, my site is not getting the credit for the referral in site statistic programs such as Sitemeter and Statcounter.

    Is there anyway I can edit the script so that these websites I am referring to give me credit. Or, maybe there's completely new code (javascript or not) that I could use to achieve this goal.

    Thanks a bunch!

  • #2
    Regular Coder
    Join Date
    Oct 2003
    Location
    on a ship
    Posts
    574
    Thanks
    1
    Thanked 6 Times in 5 Posts
    the problem may be that the sites that you want credit for send a person to require a variable within the window location value. and the variable would be the address of your site. this method is a bit old and many sites have gone to using server side scripting, which allows them to detect where the user came from and keep a record or database of this information, but none the less some older methods are still in use to this day.

    and i went and looked at your source code. even though it may work, you only have <script> </script> tags. if using javascript, it is preffered that you specify this within the script tag. <script type="text/javascript"> or <script language="javascript">. the second one is out dated but still works.
    I make no attempt at pretending like I'm a professional. I offer help with what knowledge I do have.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •