Keyword

User id in url links

  • Niall Jordan
  • Niall Jordan's Avatar Topic Author
  • Offline
  • New Member
More
8 years 2 months ago #156103 by Niall Jordan
User id in url links was created by Niall Jordan
Hello I am trying to find a way to insert the current logged in users id into my url links to external websites. So for example I am sending users to the Boots website so that they can earn cash rewards. I am using affiliate links that track the activity but in order to track an individual user I need to insert their user id into the link as clientref= user id
Here is an example link www.awin1.com/awclick.php?mid=2676&id=111384&clickref=

I need to add the users id to the link so that their clicks are recorded by the relevant affiliate. Any help would be really appreciated.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #156123 by Krikor Boghossian
Replied by Krikor Boghossian on topic User id in url links
Hello Niall,

There are two ways to approach this.

a) System plugin which manipulates all your links.
b) In your template overrides using Joomla!'s user object - docs.joomla.org/Accessing_the_current_user_object - append the URL pattern you want.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum