Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Nitobi Robot Replay


rose.water

Recommended Posts

Posted

I want to have this code in the pages footer, does anyone know the php code to ensure that it only shows on nonsecure pages (http only, not https)?

 

<script type="text/javascript" src="http://static.robotreplay.com/nitobi.replay.js">
</script>

 

 

It's probably going to be similar to this code, but with the robot replay code:

<?php
$request_type = (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER);
if ($request_type == HTTPS_SERVER) {
define('GOOGLE_HTTP', 'https://ssl.');
} else {
define('GOOGLE_HTTP', 'http://www.');
}
?>
<script src="<?php echo((GOOGLE_HTTP) . 'google-analytics.com/urchin.js'); ?>">
<script type="text/javascript">
_uacct = "UA-XXXXXXX-X";
urchinTracker();
</script>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...