1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Questions for Coders - Is their code to track clicks coming from a link?

Discussion in 'Hire a Freelancer' started by gmarch25, Jan 4, 2013.

  1. gmarch25

    gmarch25 Junior Member

    Joined:
    Aug 6, 2011
    Messages:
    178
    Likes Received:
    25
    Let's say for example if I posted a link in this forum like the one below (just an example)

    www.examplelink.com

    Could you make a code that would be embedded in that link that would track how many people clicked that link and that I could see in an external location?
     
  2. Superconservativenes

    Superconservativenes Registered Member

    Joined:
    Dec 9, 2012
    Messages:
    85
    Likes Received:
    29
    Yeup. All it is is a view counter embedded in the code.

    Why not use third party counters like google.
     
  3. gmarch25

    gmarch25 Junior Member

    Joined:
    Aug 6, 2011
    Messages:
    178
    Likes Received:
    25
    wait so you could see how many clicks or how many views? or both?
     
  4. Superconservativenes

    Superconservativenes Registered Member

    Joined:
    Dec 9, 2012
    Messages:
    85
    Likes Received:
    29
    How do you distinguish between views and clicks? My guess is a view when a user actually spends time on the site and a click is jut when the user clicks it. Am I right? If I'm right then yeah, you can monitor both.
     
  5. gmarch25

    gmarch25 Junior Member

    Joined:
    Aug 6, 2011
    Messages:
    178
    Likes Received:
    25
    Hey I see a view as someone who opens the thread but doesn't click the link, and a click as someone who opens the thread and clicks the link..So tracking both are possible then?
     
  6. SEOtheWorld

    SEOtheWorld Newbie

    Joined:
    Nov 7, 2011
    Messages:
    49
    Likes Received:
    14
    If you're talking about seeing how many impressions your link gets (how many times your link shows up on a webpage someone is looking at), that's not possible without some fancy scripting being included. To tell how many people clicked the link, there are a few different ways to go about it (referrer tracking on the destination site, passing a query string, etc)
     
  7. gmarch25

    gmarch25 Junior Member

    Joined:
    Aug 6, 2011
    Messages:
    178
    Likes Received:
    25
    aww ok thanks so "fancy scripting" means it is possible but its not some turnkey code
     
  8. ntnsllc

    ntnsllc Regular Member

    Joined:
    Jul 10, 2010
    Messages:
    204
    Likes Received:
    54
  9. entrecote

    entrecote Newbie

    Joined:
    Sep 6, 2010
    Messages:
    28
    Likes Received:
    4
    If it's your site that the link goes to then this is trivial add a tracking ID (e.g. ?id=thisisthebhwlink ). You don't even need google's toys.

    Make sure that the anchor URL is unique, specific to the source page with the link .

    The page then has code that processes incoming requests can then identify and count these links and do whatever you need with them.

    You don't even need code on the page. Just analyze the log files with one of the plenty tools out there. Google does not give you the complete picture of your traffic anyway. Anyone with noscript, etc can skip their tracking. They can't however skip your logs.
     
  10. scorpion king

    scorpion king Senior Member

    Joined:
    May 2, 2010
    Messages:
    1,157
    Likes Received:
    2,393
    Occupation:
    Entrepreneur
    Location:
    irc.blackhatworld.com
    It can be done with google analytics. Just place a java code on your site, and your visitors clicks will be tracked and shown in analytics dashboard. Simple.