People come to the site №1 in the link: site1.com/?g=X
where X is any number.
I need to give this get-parameter (g=X) site No. 2 ( site2.com
) at the time of loading the first website.
I have access to both sites, and can implement any scripts.
As I understand it, to solve this problem, the # 1 site should do one of these things:
a) send a request to site # 2.
b) hidden go to site # 2.
C) to open/close the site in a new small window (not comme Il faut, and I understand that pop-UPS the browser can block.)
d) use some kind of API.
Which option is most appropriate and how to implement it? I'm a noob, so I would love any code :)