Let's say that I have two domains: xampl.co and whatever.com
My main site is at xampl.co, and I have whatever.com parked on top of xampl.co/whatever. So you could go to xampl.co/whatever OR whatever.com, and see the exact same content.
What I want, though, is for Google (Analytics, Adsense, robots, etc), as well as any other robot, to attribute any pageview to either page to xampl.co/whatever, NOT to whatever.com. So, when you go to whatever.com, I want Analytics to show that xampl.co/whatever had a pageview, NOT whatever.com.
Manually redirecting the user isn't a good option, because the main domain is kind of crappy and not memorable. So I want the end user to still see that they're on whatever.com.
I've tried setting up whatever.com as a hosted account, then using CURL to import xampl.co/whatever manually, but this still shows up as a pageview for whatever.com.
My next thought was to set up an Ajax script on whatever.com, to grab the matching page at xampl.co/whatever and import it. But with it going through JavaScript, I don't know if Analytics or Adsense (or a robot) would recognize it at all.
Any other suggestions? This is on a dedicated Linux server, so I can consider any suggestion, whether it's via Apache, server-side scripting, or whatever.