Showing posts with label SharePoint Customization. Show all posts
Showing posts with label SharePoint Customization. Show all posts

Thursday, April 9, 2009

SharePoint (MOSS 2007) Analysis with Google Analytics

SharePoint (MOSS 2007) Analysis with Google Analytics

GA is a web analytics package provided free by Google.  I heard about this tool some time ago but never got any chance to use it. The very moment I heard of this tool, I got some illuminance as I can use it for SharePoint Site analysis.

We can apply GA to only one page OR whole site (master page). I'll explain both the ways one by one:

Applying GA to SharePoint Site Master Page:

Follow the Steps mentioned below:

  1. Obtain the Fully Qualified Domain Name (FQDN) for your MOSS site.

    For example, given a local hostname myhost and a parent domain name example.com, the fully qualified domain name is myhost.example.com.

  2. Create your Google Analytics account (see detail below). FYI, you don't need to pass any authentication in order to track hits to your site.

    When you set up your new account, you need to enter your FQDN in the URL field, and you need to enter it the way they specify:

  3. Add the GA tracking code to your site's master page within the HTML tags, which will allow you to analyze all the sub-pages, not just the home page. 

    Finding your personalized Google Analytics Tracking Code
    The tracking code is profile-specific, which is why you can only access it via the Profile Settings page for a specific profile. Below is an example of what the code snippet will look like. The symbols "xxxxxx-x" in the sample below is Google Analytics account number. You can find it in your personalized Google Analytics Tracking Code.


    Note: Google has created separate scripts for secure and non-secure URL. So while adding the Web Site URL in Step-2, you can select "http" OR "https". It will give you the appropriate script.

Point to be pondered:

I just want you to go back to Step-1, where I mentioned abut FQDN. But to work with MOSS what really needs to be entered for the Website URL is the full URL with the /pages/default.aspx ending. For example; if your domain is www.mydomain.com you would enter www.mydomain.com/pages/default.aspx.  This is because Google won't like the fact that it's getting redirected to /pages/default.aspx and will bail if you don't provide that part. For setting this full URL you have two options:

Option 1:

  1. From the home page of your Google Analytics account, click Edit:


  2. Click Edit at the upper right in the Profile Settings window:
  3. At this point you can change your website URL.  For the example I'm using, you would enter:

    <FQDN>/pages/default.aspx.

    For Example: http://mydomain.com/default.aspx


     

Option 2:

Option 2 is not much different from Option 1. Here in Option 2 you can keep your Website URL as FQDN and in addition you can specify the Default Page (i.e. default.aspx) also.


Note: After completing all the steps below, please be little patient as it will take 24 hours for Google to display your report.

Applying GA to SharePoint Page:

Applying Google Analytics to only one page includes all the steps for setup of Google analytics account. Other than that we need to perform some actions which I'm mentioning below:

  1. Add a Content editor Web Part to our SharePoint Site Page.
  2. Click on 'Modify Shared Web Part'.
  3. Click on the 'Source Editor'


Paste the Java Script provided by GA in this Source Editor. Click Save and then Click OK.

Thursday, April 2, 2009

Site Directory in SharePoint Site

Introduction:


 

When you create a site collection in SharePoint based on the OOTB starter template "Collaboration Portal Template" you get a series of sub sites such as "Document Center", "News", "Reports", "Search" and "Sites". The site called "Sites" is created by default and it comes wired with a site directory. Typically if your organization has just installed SharePoint or are evaluating SharePoint this "Collaboration Portal Template" is the first place an end user will start their interaction with SharePoint.

The out-of-box site directory includes three tabs: Categories, Top Sites,
and Site Map.

Categories and Top Sites rely upon information stored in the Sites list while the Site Map is automatically rendered.


The Categories Tab

The default categories that appear in the site directory are Division, Region,
and Tasks and Tools. These are column names in the Sites custom list (Sites > View All Site Content > Sites > Settings > List Settings). The sub-categories (e.g. beneath Region there is Local, National, and International) are column values for the column. In the case of Region, Region is a choice column in the Sites custom list and Local, National, and International are available values for that column.

The Sites custom list has several views.


  1. Categories:

This view defines what is shown on the Categories.aspx page. For example, if you open the Categories view (Sites > View All Site Content > Sites > Settings > List Settings > Views > Categories) you will see that the three columns that are checked are Division, Region, and Tasks and Tools. These represent the categories that are visible on the Categories.aspx page.


  1. Site Creation Categories:

This view defines what categories appear when a new site is created.



 

Listing Sites in Site Directory

When you create a new site and indicate that you want it to be listed in the site directory, and you specify which categories you want it listed under, a new list item is created in the Sites custom list. For example, if you click Site Actions > Create Site and you create a site called Test Site 1, listing it under all possible site categories, then a new list item is created in the Sites custom list.

The Division and Region values you specified when you created the site appear as properties data for that list item. Since you selected all of the possible Division and Region values when you created Test Site 1, you can test the way the site directory works by clicking on one of these categories in the site directory.

You can add previously created sites to the site directory by creating new list items in the Sites custom list.



 

Specifying a Different Site Directory

If you delete the default Site Directory site and create a new one you will notice that the site creation options for listing new sites in a site directory are no longer available. In order to associate site creation to a Site Directory other than the default one, you need to specify this new Site Directory.

Navigate to Home > Site Actions > Site Settings > Modify All Site Settings > Site Collection Administration > Site Directory Settings. Here you can define the location of the Site Directory. You can also enforce site creation options from this screen.


Master Site Directory

To ensure that any site and site collection being created within your SharePoint farm is listed in your "Site Directory" you need to add/configure the URL of your "Site Directory" in Central Administration. Go to Central Administration and to the Operations Tab. Under "Global Configuration" click on "Master site directory settings".


Once the URL of your master site directory has been set you can enforce the listing of new site collections in the Site Directory and ensure that you capture the correct Categorization meta data for your sites. This setting effectively provides the Global location for your Master Site Directory. You may think that this is all it's required to list all the sites in the Site Directory but you also need to configure this at your site collection level in your deployment.

Site Directory Links Scan

Another most often overlooked functional part of maintaining the Site Directory is hidden away in Central Administration. This is called "Site Directory Links Scan"

Effectively you can check for broken site links and get a report as well as update your site description listings in the Site Directory using Site Directory Links Scan. Site Directory Links Scan is available via the Operations tab in Central Administration.


The site property update is automated to reflect any changes you may apply to how the sites are categorized and listed in the Sites list in your Site Directory.

Once you have enabled Site Directory Links Scan you can also go to your SharePoint Site and from your Site Directory site select Site Settings and "Scan for Broken Links" which will initiate a manual scan. This will search the "Sites" list located in the Site Directory site for any changed or broken links.


The scanner will provide you with options of what View you would like to scan and update you of the Scan progress.