<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Morten Bock</title><link>http://www.mortenbock.dk/</link><description>A feed of new content on my website</description><item><author>Morten Bock</author><category>google-analytics</category><category>english</category><category>statistics</category><description>                    &lt;p&gt;
                        As many others, i think it is fun to look at the stats for my blog. So here is a
                        little info from Google Analytics:&lt;/p&gt;
                    &lt;h3&gt;
                        Most visited&lt;/h3&gt;
                    &lt;p&gt;
                        The top 10 url’s visited on this site are:&lt;/p&gt;
                    &lt;ul&gt;
                        &lt;li&gt;&lt;a href="http://www.mortenbock.dk/google-analytics-outgoing-links-50.htm"&gt;/google-analytics-outgoing-links-50.htm&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href="http://www.mortenbock.dk/"&gt;/&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href="http://www.mortenbock.dk/widevision-er-et-svindlerfirma-78.htm"&gt;/widevision-er-et-svindlerfirma-78.htm&lt;/a&gt;
                            (new)&lt;/li&gt;
                        &lt;li&gt;&lt;a href="http://www.mortenbock.dk/using-xslt-search-with-multiple-dropdowns-37.htm"&gt;
                            /using-xslt-search-with-multiple-dropdowns-37.htm&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href="http://www.mortenbock.dk/updated-cpalm-multiple-page-picker-for-v3-bugfix-57.htm"&gt;
                            /updated-cpalm-multiple-page-picker-for-v3-bugfix-57.htm&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href="http://www.mortenbock.dk/asus-acpi-drivers-and-intel-prosetwireless-73.htm"&gt;
                            /asus-acpi-drivers-and-intel-prosetwireless-73.htm&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href="http://www.mortenbock.dk/om-skribenten"&gt;/om-skribenten&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href="http://www.mortenbock.dk/umbraco-ecommerce-has-found-a-home-56.htm"&gt;/umbraco-ecommerce-has-found-a-home-56.htm&lt;/a&gt;&lt;/li&gt;
                        &lt;li&gt;&lt;a href="http://www.mortenbock.dk/converting-links-to-popups-using-javascript-74.htm"&gt;
                            /converting-links-to-popups-using-javascript-74.htm&lt;/a&gt; (new)&lt;/li&gt;
                        &lt;li&gt;&lt;a href="http://www.mortenbock.dk/tag/english"&gt;/tag/english&lt;/a&gt;&lt;/li&gt;
                    &lt;/ul&gt;
                    &lt;p&gt;
                        Only two of these were created in 2008. The Google Analytics post is massively in
                        the lead with 3,386 pageviews. The front page in comparison only has 1,289 pageviews.&lt;/p&gt;
                    &lt;h3&gt;
                        Traffic sources&lt;/h3&gt;
                    &lt;p&gt;
                        Search engines (Google) represent 63.08% of the traffic. Referring sites is 26.76%
                        and direct traffic is 10.16%. The Umbraco forum in itself is 7.51% of the traffic.&lt;/p&gt;
                    &lt;h3&gt;
                        Visitors&lt;/h3&gt;
                    &lt;p&gt;
                        48.45% of my visitors use Firefox, and 43.48% use IE. I take that as a sign that
                        this is a geek blog, which suits me fine :-D&lt;/p&gt;
                    &lt;p&gt;
                        36.26% are from Denmark, and 18.96% are from the United States. On a continental
                        level it looks like this:&lt;/p&gt;
                    &lt;ul&gt;
                        &lt;li&gt;Northern Europe 49.32%&lt;/li&gt;
                        &lt;li&gt;Northern America 22.08%&lt;/li&gt;
                        &lt;li&gt;Western Europe 9.09%&lt;/li&gt;
                        &lt;li&gt;Southern Europe 4.79%&lt;/li&gt;
                        &lt;li&gt;Australia and New Zealand 3.34%&lt;/li&gt;
                        &lt;li&gt;Eastern Europe 2.82%&lt;/li&gt;
                        &lt;li&gt;Southern Asia 2.43%&lt;/li&gt;
                        &lt;li&gt;Western Asia 1.94%&lt;/li&gt;
                        &lt;li&gt;South-Eastern Asia 1.38%&lt;/li&gt;
                        &lt;li&gt;Eastern Asia 1.00%&lt;/li&gt;
                    &lt;/ul&gt;
                    &lt;h3&gt;
                        Happy New Year&lt;/h3&gt;
                    &lt;p&gt;
                        Get safe into the new year, and thanks for all the visits :-)&lt;/p&gt;
</description><guid isPermaLink="false">1388</guid><link>http://www.mortenbock.dk/blog/2008/12/31/a-bit-of-stats-for-the-year-2008.aspx</link><pubDate>Wed, 31 Dec 2008 13:47:39 +0100</pubDate><title>A bit of stats for the year 2008</title></item><item><author>Morten Bock</author><category>english</category><category>statistik</category><category>google-analytics</category><category>javascript</category><category>linktracking</category><description>
&lt;p&gt;I wanted to try and find a way to track all of the outgoing
links on my blog, without haven to modify the html of the link.
What I found was that using javascript listeners would probably be
the best solution. Actually this technique can be used for a lot of
stuff, but this is what I did:&lt;!--more--&gt;&lt;/p&gt;

&lt;pre&gt;
&amp;lt;script type="text/javascript"&amp;gt;
// Cross-browser implementation of element.addEventListener()
function addListener(element, type, expression, bubbling) {
    bubbling = bubbling || false;

    if (window.addEventListener) { // Standard
        element.addEventListener(type, expression, bubbling);
        return true;
    } else if (window.attachEvent) { // IE
        element.attachEvent('on' + type, expression);
        return true;
    } else return false;
}

//This is what i want to do whenever someone clicks on the page
function itHappened(evt) {

    //Get the clicket element
    var tg = (window.event) ? evt.srcElement : evt.target;
    //If it is an A element
    if (tg.nodeName == 'A') {
        //And it is not an internal link
        if (tg.href.indexOf(location.host) == -1) {
            //Replace all odd characters, so that it works with Analytics Niavgation analysis
            var url = tg.href.replace(/[^a-z|A-Z]/g, "_");

            var txt = tg.innerHTML.replace(/[^a-z|A-Z]/g, "_");
            var str = '/outgoinglink/-' + txt + '-' + url;
            try {
                //Track it
                urchinTracker(str);
            }
            catch (err) {
                //alert('error: ' + err);
            }
        }
    }
}
//Add the click listener to the document
addListener(document, 'click', itHappened);&amp;lt;/script&amp;gt;
&lt;/pre&gt;

&lt;p&gt;I hope you can use it. Any comments or advice is very welcome
:-)&lt;/p&gt;
</description><guid isPermaLink="false">1199</guid><link>http://www.mortenbock.dk/blog/2007/04/15/google-analytics-outgoing-links.aspx</link><pubDate>Sun, 15 Apr 2007 23:00:10 +0100</pubDate><title>Tracking all outgoing links with Google Analytics</title></item><item><author>Morten Bock</author><category>google-analytics</category><category>regular-expressions</category><description>&lt;p&gt;Jeg faldt lige over det her &lt;a target="_blank" title="Test dine RegEx" href="http://www.epikone.com/blog/2006/12/06/regular-expression-testing-tool/"&gt;super lille værktøj&lt;/a&gt; til at teste regular expressions med.&lt;/p&gt;&lt;p&gt;Jeg er ingen haj til RegEx så derfor havde jeg brug for lidt hjælp til at få sat mine filtre rigtigt op i Google Analytics, hvis hjælpefunktion på det område lader en del tilbage at ønske.&lt;!--more--&gt;&lt;/p&gt;&lt;p&gt;Det jeg havde brug for var at matche en bestemt url som et konverteringsmål. Det er i sig selv ingen kunst da man bare kan foretage en exact match på f.eks.
&lt;ul&gt;
	&lt;li&gt;http://www.myshop.dk/Default.aspx?ID=67&amp;step=6&lt;/li&gt;
&lt;/ul&gt;
Men hvis man gør det, så får man ikke de konverteringer med der besøger
&lt;ul&gt;
	&lt;li&gt;http://myshop.dk/Default.aspx?ID=67&amp;step=6&lt;/li&gt;
&lt;/ul&gt;
Det jeg skal matche på er altså udelukkende det der kommer efter domænenavnet. Og vupti, lidt trial &amp; error med det lille tool gav mig svaret
&lt;ul&gt;
	&lt;li&gt;.*Default\.aspx\?ID=67&amp;step=6&lt;/li&gt;
&lt;/ul&gt;
Så er det fløjtende ligegyldigt hvilket domæne personen benytter :-)&lt;/p&gt;</description><guid isPermaLink="false">1161</guid><link>http://www.mortenbock.dk/blog/2007/01/19/regular-expressions-tool.aspx</link><pubDate>Fri, 19 Jan 2007 20:44:29 +0100</pubDate><title>Lækkert lille tool til RegEx</title></item><item><author>Morten Bock</author><category>filter</category><category>google-analytics</category><category>how-to</category><category>php</category><category>statistik</category><description>&lt;p&gt;Af en eller anden årsag er det mig umuligt at få Google Analytics til at excludere min egen IP adresse i statistiken selvom jeg følger &lt;a target="_blank" href="http://www.google.com/support/analytics/bin/answer.py?answer=26913"&gt;deres egen vejledning&lt;/a&gt;. Og på et site med så lidt trafik, så er der en hel del der er selvskabt! Heldigvis er der råd for den slags.&lt;!--more--&gt;Jeg søgte lidt rundt på nettet, og fandt hurtigt ud af at jeg ikke var den eneste med det problem. Der var flere løsninger, hvor nogle tog høje for en dynamisk IP ved at lave en Cookie på ens egen maskine, og på den måde identificere egne besøg. Men eftersom det er meget sjældent man skifter IP hos danske udbydere, så valgt jeg er ret ligetil metode hvos man ganske enkelt gennem PHP undlader at hente generere Google koden:&lt;/p&gt;&lt;p&gt;&lt;pre&gt;
&amp;lt;?php if ($_SERVER["REMOTE_ADDR"] != "xxx.xxx.xxx.xxx" &amp;&amp; $_SERVER["REMOTE_ADDR"] != "xxx.xxx.xxx.xxx") { ?&amp;gt;
&amp;lt;!--Google kode her--&amp;gt;
&amp;lt;?php } ?&amp;gt;
&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;Jeg tester her på to IP'er så jeg hverken skaber hits hjemmefra eller fra kontoret (skift selv xxx ud....)&lt;/p&gt;&lt;p&gt;&lt;em&gt;Via:&lt;a href="http://theaffiliatemarketer.net/blocking-your-own-views-with-google-analytics/"&gt;Blocking your own views with Google Analytics&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;</description><guid isPermaLink="false">1149</guid><link>http://www.mortenbock.dk/blog/2006/12/08/udelad-din-ip-fra-google-analytics.aspx</link><pubDate>Fri, 08 Dec 2006 20:26:36 +0100</pubDate><title>Udelad din IP fra Google Analytics</title></item></channel></rss>
