(function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.id = "wlfa-ga"; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); ga(function (tracker) { var url; var ua = navigator.userAgent.toLowerCase(); var isAndroid = ua.indexOf("android") > -1; //&& ua.indexOf("mobile"); var referrer = encodeURIComponent(location.search.replace(/^\?/, '').replace('?', '&')); if (isAndroid) { // Do something! // Redirect to Android-site? url = "market://details?id=com.wlfa&referrer=" + referrer; } else { url = "https://play.google.com/store/apps/details?id=com.wlfa&referrer=" + referrer; } location.href = url; }); ga('create', 'UA-92793794-1', 'auto'); ga('send', 'pageview');