UIsign grails I need to make a plugin for my site.
Third parties must be able to copy some html code form me. This code , when pasted in their sites generates a button.
When some visitor of their sites clicks the generated button my page appears. If they make an account and if they purchase something , and when they make their first purchase , the affiliate guy gets some $. A fixed sum of money for each client he brings.
How do I do that ?
What is a plugin in grials ? Why does my boss say I need to make a plugin ?
Can I just make a link to a controller , and put the action and the id in that link , and when the controller receives a request it knows the sender was from an affiliate from the id (the id in the link I give to the affiliate will be his id in my databse).
Any solutions ?
Please at least recommend me what to read.
Is there any parameter/value you can add to a request ? What if I make a link to a website A and I want him to know that me from website B was the one who pressed the link ?