Help Center

Urchin 6 Installation Guide (Windows)

Before You Start - Important Note for Urchin 6.500 Users

Urchin 6.501 fixed several issues in the CPC scheduler. If you are upgrading from Urchin 6.500 to Urchin 6.602, the processed CPC data might be incorrect or incomplete, resulting in incorrect results in the Urchin reports. In order to get correct data from Google Adwords, we recommend that you either (a) install Urchin 6.602 in a new location or (b)if you wish to install on an existing 6.500 instance, delete the old CPC data. In this latter case, delete all contents of the following directories:

<path_to_urchin_6500_installation>\data\cpc\...
<path_to_urchin_6500_installation>\data\history\cpc\...

No action is required if you are upgrading from Urchin 6.600, 6.501 or from Urchin 6.402 and prior.

Overview of Installation Steps

Option 1: Using existing MySQL database with Urchin

mysql> create database urchin character set utf8;
mysql> GRANT ALL ON urchin.* to 'urchin'@'localhost' IDENTIFIED BY
'urchinpassword';

Option 2: Using existing PostgreSQL database with Urchin

postgres=# CREATE DATABASE urchin WITH ENCODING 'UTF8';
postgres=# CREATE USER urchin WITH PASSWORD 'urchinpass';
postgres=# GRANT ALL ON DATABASE urchin TO urchin;
postgres=# \connect urchin;
postgres=# CREATE LANGUAGE 'PLPGSQL';

Option 3: Using bundled PostgreSQL server with Urchin

Installing Urchin

http://yourserver:<port>

where <port> is the network port you chose during the installation (default is 9999).

Configuring Tracking

Once Urchin is installed, there may be additional steps required to set up tracking on your website depending on your use case.

Case 1: Using Urchin with IP+User-Agent Tracking

No additional configuration is necessary. When adding profiles to Urchin, be sure to specify IP+User-Agent as the Visitor Tracking Method.

Case 2: Using Urchin with UTM Tracking

To use Urchin with UTM tracking, it is necessary to install a small piece of javascript tracking code on each of your website's pages. Here are the steps:

<script src="/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
  _userv=0;
  urchinTracker();
</script>

Case 3: Using Urchin concurrently with Google Analytics

Please note that the new tracking features in the Google Analytics "ga.js" tracking code are not backward compatible with Urchin 6. If you wish to track your website with both Google Analytics and Urchin Software, we recommend using the urchin.js-based tracking code for best results. If you choose to use ga.js, you will not be able to use the new ga.js tracking features.

To use Urchin with a website that is already being tracked with Google Analytics, you just need to make a slight modification to the existing tracking code for Google Analytics. Here are the steps:

<script src="http://www.google-analytics.com/urchin.js"
type="text/javascript">
<script type="text/javascript">
  _userv=2;
  _uacct="UA-XXXXXXX-Y";
  urchinTracker();
</script>

Additional Installation Steps for Windows Vista and Server 2008

In addition to the already supported version of Windows (2000, XP and Server 2003), Urchin 6.6+ also supports Windows Vista and Server 2008. Certain security features in these newer Windows versions can affect Urchin execution. Explanation follows below.

UAC - Issue

Windows 2008 contains a new security feature called User Access Control (UAC); for details, please refer to http://technet.microsoft.com/en-us/library/cc709691.aspx.

The known issues when UAC is enabled are:

  1. . If UAC is enabled, the application can’t correctly write to the “Program files” folder. Find more details here: http://msdn.microsoft.com/en-us/library/aa905330.aspx

  2. . Urchin’s executables can’t be run from a command prompt by default. You must either use the command prompt as administrator or set the properties of the executable as follows: Right click and select Properties-> Compatibility -> “Run this program as administrator” -> OK. Please note that Urchin Windows services operate as expected without any additional effort required.

UAC - Solution

  1. Disable UAC and set up Urchin wherever you want. Run Urchin using the binaries or Windows services.
  2. IF UAC is enabled, DO NOT install Urchin in the Program files folder. Install it in, for example, your Users directory. Modify the properties to run binaries in admin mode (as described in 2, above) or use Windows services without any changes.