Skip to content

Instantly share code, notes, and snippets.

@hmps
Created June 23, 2014 14:58
Show Gist options
  • Save hmps/9f8881113457925d1869 to your computer and use it in GitHub Desktop.
Save hmps/9f8881113457925d1869 to your computer and use it in GitHub Desktop.
The ProspectEye tracker - Simply put

Introduction to the ProspectEye tracker

The ProspectEye tracker is simply a small Javascript snippet that you put on your site. Once it is activated (that is, inserted into the markup of your site) it will track all visitors coming in and relay that information to ProspectEye's service.

Here's an example of what the code snippet looks like:

<script type="text/javascript">
    var psSite = "xxx"; var peJsHost = (("https:" == document.location.protocol) ? "https://" : "http://");
    document.write(unescape("%3Cscript src='" + peJsHost + "tr.prospecteye.com/track.js' type='text/javascript'%3E%3C/script%3E"));
</script>

Usually the snippet is best placed in the footer of your site, but if you're using a CMS or other software to manage your script tags it will work just as well if it's inserted elsewhere on the site. The script is highly optimized and your user won't notice any differnence in the speed of your site.

On a static HTML site it would probably look something like this:

<!doctype html>
   <html lang="en">
   <head>
       <meta charset="UTF-8">
       <title>Title</title>
   </head>
   <body>
       <h1>A headline</h1>
       <p>Some content</p>
       <script type="text/javascript">
           var psSite = "xxx"; var peJsHost = (("https:" == document.location.protocol) ? "https://" : "http://");
           document.write(unescape("%3Cscript src='" + peJsHost + "tr.prospecteye.com/track.js' type='text/javascript'%3E%3C/script%3E"));
       </script>
   </body>
   </html>   

In its most basic form the tracker will only collect the IP address of a visitor along with which pages that are visited. Through the magic of ProspectEye that IP address is transformed into all kinds of useful data, which is presented to you in your account just a few minutes after the visitor first landed on your site.

With our more advanced options you can also track forms, clicks and basically anything else that you can handle via Javascript. Talk to your ProspectEye sales person if you have more advanced needs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment