People come to the site number 1 link: site1.com/?g=X, where X is any number. I need to pass this get parameter (g = X) to site # 2 (site2.com) at the time of loading the first site. I have access to both sites and can embed any scripts into them.
As I understand it, to solve this problem, site # 1 should do one of these things:
- send a request to the site №2.
- go to site number 2.
- open / close the site in a new small window (not comme il faut, and as I understand it, the browser can block pop-up windows.)
- use some kind of API.
Which option is best and how to implement it? I'm noob, so I will be grateful to any code :)