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 store ID]];</script>
<script type="text/javascript" src=""></script>
<script type="text/javascript">try{;}catch(e){}</script>
[[...actual redirect script...]]
<script type="text/javascript">try{;}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=""></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]);;
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('http:' == document.location.protocol ? 'http://ssl' : 'http://www') + '';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

Note: If the code is placed on a secure page (https), then the jMUI URL changes from "" to ""

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=””></script>


<script type=”text/javascript” src=””></script>


<script type=”text/javascript”>BOOMR.init({ beacon_url: document.location.protocol+”//”,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 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!