Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 69635 invoked from network); 10 Sep 2007 23:14:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Sep 2007 23:14:16 -0000 Received: (qmail 44856 invoked by uid 500); 10 Sep 2007 23:14:05 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 44820 invoked by uid 500); 10 Sep 2007 23:14:04 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 44805 invoked by uid 99); 10 Sep 2007 23:14:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 16:14:04 -0700 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=MSGID_FROM_MTA_HEADER,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [88.149.157.110] (HELO goth.it) (88.149.157.110) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Sep 2007 23:15:34 +0000 Message-ID: <29280624.26061871189466011755.JavaMail.root@elysia.void.it> MIME-Version: 1.0 Received: from 81-174-40-220.dynamic.ngi.it ([81.174.40.220]) by elysia.void.it (JAMES SMTP Server 2.3-dev) with SMTP ID 338 for ; Tue, 11 Sep 2007 01:10:01 +0200 (CEST) Date: Tue, 11 Sep 2007 01:07:54 +0200 From: Stefano Bagnara User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051206 Thunderbird/1.6a1 Mnenhy/0.7.3.0 To: Apache Directory Developers List Subject: Re: Adding some google analytics to our downloads References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Emmanuel Lecharny ha scritto: > Hi, > > we can't currently use GA to count the number of server downloads, > because the link is on a dynamic server (a mirror). > > We should create a page where we redirect to these dynamic pages, so > that we can have a GA count. > > Who want to do that ? > > Thanks ! In Apache JAMES I added a javascript tracking to the download links. As we generate the pages using maven I added it to our skin. Here is the javascript that automatically track every link to gz, bz2, zip, jar, asc, sar files. Please note that the trackDownloads methods include the JAMES specific way to find the common part of the path in mirror strings so that they are rewritten to /downloads/relativefilepaths. --------------------- ------------------------------------ Hope this helps, Stefano