0

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?

Bs3kg
  • 109
  • 1
  • 2
  • 13
  • 1
    Could you show what you have tried so far? – Anubhav Apr 02 '14 at 20:56
  • http:www.habitatlife.com/?utm_source=partneremail&utm_medium=email&utm_campaign=‌​partnerjjj5email&ref=talkawalk12 so before the link didnt have the "&ref=talkawalk12" at the end. Is adding that the correct way? – Bs3kg Apr 02 '14 at 21:16

1 Answers1

1

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.

dgp
  • 953
  • 1
  • 8
  • 11
  • so if i had a link like http:www.habitatlife.com/?utm_source=partneremail&utm_medium=email&utm_campaign=partnersj3email i would just add an & and then the ref code? so http:www.habitatlife.com/?utm_source=partneremail&utm_medium=email&utm_campaign=partnerjjj5email&ref=talkawalk12 ? – Bs3kg Apr 02 '14 at 21:10
  • 1
    It would depend on how habitatlife.com received the ref code and where. For example, is the 'ref' parameter something specific to the homepage? Or maybe another page, like: www.habitatlife.com/another_page?ref=talkawalk12. If it can be received at any resource identifier with the host domain www.habitatlife.com, then the above should work. Give it a shot with one link and see if it works how you expect it to. – dgp Apr 02 '14 at 21:36
  • We have an email going out and they want to use that code for our main link and also the link for our video so they are too different links. – Bs3kg Apr 02 '14 at 21:40