Opened 11 years ago

Closed 7 years ago

#13451 closed defect (patchwelcome)

ga.js updated, Urchin broke?

Reported by: Nick Fenwick Owned by: Dustin Machi
Priority: high Milestone: 1.13
Component: Dojox Version: 1.7.0b1
Keywords: Cc:
Blocked By: Blocking:


Cheap-and-cheerful test page demonstrating problem:

My console prints:

urchin instance:  > a                                         analyticstest.html:7
> Uncaught TypeError: Cannot call method 'f' of undefined     ga.js:33

Previously posted on community:

Change History (3)

comment:1 Changed 11 years ago by Nick Fenwick

Just to mention, falling back on the recommended tracking code from google has fixed our PHP application's problem overnight, so their recommended code works fine. After 7 days of graph flatline, analytics shows strong visitor numbers yesterday.

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', googleUA]);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

I'm not sure, from that, exactly how _gaq is used inside ga.js to call _trackPageview. I tried pulling ga.js apart manually but it's pretty well obfuscated.

comment:2 Changed 11 years ago by Adam Peller

Component: GeneralDojox
Owner: set to Dustin Machi

comment:3 Changed 7 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in the past 4+ years, I'm closing this as patchwelcome.

Note: See TracTickets for help on using tickets.