Preserving Referrer through a javascript redirect

On the landing page that might use a javscript redirect, place this bit of code:

<script type="text/javascript">var monitus=monitus||{}; monitus.id=[[monitus store ID]];</script>
<script type="text/javascript" src="http://ldn..monitus.net/js/monitus.js"></script>
<script type="text/javascript">try{jMUI.yahoo.save_referrer_for_redirect();}catch(e){}</script>
[[...actual redirect script...]]
<script type="text/javascript">try{jMUI.yahoo.clear_referrer_for_redirect();}catch(e){}</script>

Then, on the redirected page, we need to grab the referrer back before we use it. In this example, we use the out-of-the-box GA code on the redirected page:

<script type="text/javascript" src="http://ldn..monitus.net/jmui.js"></script>
<script type="text/javascript">>
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXX-1']);
var overridenRef = jMUI.utilities.cookie_value("_mrrf", null);
if(overridenRef) _gaq.push(['_setReferrerOverride', overridenRef]);
MUI.yahoo.clear_referrer_for_redirect();
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('http:' == document.location.protocol ? 'http://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

Note: If the code is placed on a secure page (https), then the jMUI URL changes from "http://ldn..monitus.net/jmui.js" to "http://d35q1w5azactrh.cloudfront.net/jmui.js"

Boomerang testing on store pages

All you need to do is place this code as high-up on the page(s) you want to test; the higher the better.

<script type=”text/javascript” src=”http://ldn..monitus.net/boomerang-monitus.js”></script>

OR, IF ON HTTPS:

<script type=”text/javascript” src=”https://d35q1w5azactrh.cloudfront.net/boomerang-monitus.js”></script>

THEN:

<script type=”text/javascript”>BOOMR.init({ beacon_url: document.location.protocol+”//live..monitus.net/php-bin/mboom.php”,RT:{enabled:false},BW:{enabled:false}}); BOOMR.addVar(“mid”, <monitus store ID>);BOOMR._mon=”custom”;BOOMR.addVar(“mode”, BOOMR._mon);BOOMR.plugins.MT.startTimer(“t_done”);</script>

Monitus Tools v2.5

A new year, yet a new version of our tools! : )

This version is mainly a change in how we will be handling your subscription billing, so at first glance, not much exciting going on… However, we never want to leave you guys hanging so…

  • Google Analytics Session Timeout: You can now control the length of sessions in your Monitus.net settings screen. Careful though, as this can greatly affect your data! (longer sessions means less visits, longer time on site, etc…)
  • Delete Dropped Carts Emails: As a courtesy, we now allow you to set how often you want to receive the deleted carts email: daily (default, the current setting), weekly or monthly.

Of course, you knwo what that means, right? A light version now means a jam-packed version later! So stay tuned!