htmlweb-trafficclick-through

ref code with link in html document


So for tracking purposes my company wants to put a ref code on each link that's clicked. So if I had a a ref code of ref=talkawalk12 and had to implement it to any kind of link how do I format that?


Solution

  • Usually you have links in anchor tags, and the location of the link is defined in the 'href' attribute of the tag. If I am understanding your question right, you are looking to do something like:

    <a href="your_company_link?ref=talkawalk12">Link Text Here</a>
    

    If you are redirecting buttons or other tags in an onClick, then you would need to substitute the redirect location with what is inside the 'href' attribute.