Urchin tracking to work on modal boxes

2 views
Skip to first unread message

BillyT63

unread,
Dec 9, 2009, 9:31:54 PM12/9/09
to Urchin Software from Google - help forum - Urchin 6
Our application uses modal windows to perform specific functions from
a common page. How can I tag the modal window so that the Urchin 6
reports show visits to and thru the modal??

Kirk - Actual Metrics

unread,
Dec 10, 2009, 3:47:19 PM12/10/09
to Urchin Software from Google - help forum - Urchin 6
Are you talking about a windows application or modal windows within a
web app? If the latter, each time a modal window is shown, throw off a
virtual pageview: urchinTracker("/show/this/page");

Kirk
www.urchintools.com
www.urchinexperts.com
www.actualmetrics.com

BillyT63

unread,
Dec 11, 2009, 2:58:30 PM12/11/09
to Urchin Software from Google - help forum - Urchin 6
we attempted to implement that functionality, but we are getting
message _udl is undefined....



On Dec 10, 3:47 pm, Kirk - Actual Metrics <kirk.mora...@gmail.com>
wrote:
> > reports show visits to and thru the modal??- Hide quoted text -
>
> - Show quoted text -

BillyT63

unread,
Dec 11, 2009, 6:11:22 PM12/11/09
to Urchin Software from Google - help forum - Urchin 6
When the urchinTracker(page) is called, it fails at the line "if
(_udl.protocol=="file:")" with the error _udl is undefined. Also all
the DOM variables were undefined in the stack trace. I see _udl being
defined in the urchin.js file as

var
_uff,_udh,_udt,_ubl=0,_udo="",_uu,_ufns=0,_uns=0,_ur="-",_ufno=0,_ust=0,_ubd=document,_udl=_ubd.location,_udlh="",_uwv="1";

So, my guess is somehow _udb =document is not getting set.
> > - Show quoted text -- Hide quoted text -

Jeremy Aube

unread,
Dec 14, 2009, 10:59:16 AM12/14/09
to Urchin Software from Google - help forum - Urchin 6
Either add the following line to your UTM code before the
urchinTracker call:

_udn="none";

or modify the variable in the urchin.js file itself. This is necessary
for the UTM method to function correctly on an intranet that does not
have a Fully Qualified URL.

Jeremy Aube
http://www.roirevolution.com/urchin
Reply all
Reply to author
Forward
0 new messages