How to make a site appear within another site?

LasVegas702

Newbie
Joined
Dec 24, 2012
Messages
34
Reaction score
14
Hey BHW,

I'd like to make a clickbank site appear within my site...

For example: lets say its a weight loss product.. and the site is weightlossDOTcom/weightloss.php?hop=example"

I'd like to have people to go my domain ex: "superweightlossDOTcom" and all the content is from the clickbank site is shown but the url remains "superweightlossDOTcom".. and when they go to pay, it just goes to the regular pay screen.

I've heard the term iframe being tossed around but not sure if thats it.

Any ideas?
 
Code:
http://www.acloaker.com/

Enter the weightloss url (weightlossDOTcom/weightloss.php?hop=example)

Click generate

Download the 'redirect with hidden url'

You will get a html file, just upload it to superweightlossDOTcom. You now have their site on your domain.
 
Thanks.. thats really helpful.

How would I make it show on mydomainDOTcom instead of mydomainDOTcom/example.html ?
 
Is there a way to embed google analytics code in the html? I tried but it does not seem to work. Thanks
 
Google analytics code into the iframe? I doubt it..... you'd have to go to your affiliate tracking section to see how many views it has, and conversion rates.
 
maybe not in iframe, but should work ok if your putting it in that cloaker html document. It depends where you place the code though, and sometimes analytics takes a few days to respond and recognize the tracker.
 
Yes, you're right. I guess it was just lagging. It works now! :) Resorting to the affiliate tracking would suck.
 
Google analytics code into the iframe? I doubt it..... you'd have to go to your affiliate tracking section to see how many views it has, and conversion rates.

Whilst your correct in saying that you cannot 'inject' the analytics's code into the iframe, you can still track the unique hits to your iframe page/domain.
We can do this because essentially an iframe is loading an html document from inside another html document, so if we add our analytics code to the header of the html document that loads the iframe, then we can track the hits to the domain.

So you could do something like this to track the unique hits to your affiliate link, whilst giving the illusion of your own domain.

HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" lang="EN"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>Full Page IFrame</title> 
<style type="text/css"> 
html {overflow: auto;} 
html, body, div, iframe {margin: 0px; padding: 0px; height: 100%; border: none;} 
iframe {display: block; width: 100%; border: none; overflow-y: auto; overflow-x: hidden;} 
</style> 

<!-- Start Analytics Code -->

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-XXXXX-Y']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

<!-- End Analytics Code -->

</head> 
<body> 

<!-- Start Iframe Code -->

<iframe id="tree" name="tree" src="AFFILIATE URL GOES HERE" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="100%" scrolling="auto"></iframe> 

<!-- End Iframe Code -->

</body> 
</html>

Credit where credit is due, the HTML for the full page iframe came from: http://www.dev-explorer.com/articles/full-page-iframe

Also, while this is technically possible, I'm not sure if it will work perfectly. For example, if the user clicks a link in the iframe, I'm unsure if the users browser will load the link or if it will load the link inside the iframe - Maybe a user with more experience of iframes can answer that. However if your only looking to track unique hits, this could be quite useful.
 
Thanks guys, just wanted to add that making my affiliate offer look more professional on my own domain has helped me make my first clickbank sale today!!
 
Back
Top