Tracking Organic Traffic

In order to start tracking your organic visitors, we've developed a special script you should place on your website homepage.
This script allows you to track users that didn't come via a FOCUUS tracking link (no TID in the URL or referrer). It will generate the organic user a new TID for his visit.
In case the user came via a FOCUUS tracking link, the script won't change the user's TID.
Before implementing the organic user tracking code, you need to generate a FOCUUS tracking link where you will attribute the click including a traffic source and a link.
We recommend to generate a new traffic source called "Organic" and then implement a URL of your homepage.
After generating the FOCUUS tracking link, please place it in the script below instead of the current http://focuusing.com... URL as you see below.

PLACE THE FOLLOWING SCRIPT IN THE HEAD SECTION:
<script>

 function getParameterByName(name, url) {
            var used_url = url || window.location.search;
            if (url) {
                if (url.indexOf("?") != -1) {
                    used_url = "?" + url.split("?")[1];
                }
                else {
                    used_url = "";
                }
            }
            var regexS = "[\\?&]" + name + "=([^&#]*)",
          regex = new RegExp(regexS),
          results = regex.exec(used_url);
            if (results == null) {
                return "";
            } else {
                return decodeURIComponent(results[1].replace(/\+/g, " "));
            }
}
function CheckOrganic(){
if(getParameterByName("tid") == "" && getParameterByName("tid",document.referrer) == "")
{
var ie = document.createElement('iframe');
ie.id="iftkx";
ie.style="display:none;";
ie.src=put_hidden_link;
var body = document.getElementsByTagName("BODY")[0];
body.appendChild(ie);
}
}
</script>

PLACE THE FOLLOWING SCRIPT IN BODY SECTION:

<script>
CheckOrganic();
</script>




Feedback and Knowledge Base