Opened 8 years ago

Closed 4 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:

Description

Cheap-and-cheerful test page demonstrating problem:

http://nickfenwick.com/analyticstest.html

My console prints:

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

Previously posted on community: http://dojo-toolkit.33424.n3.nabble.com/Anyone-else-having-trouble-with-dojox-analytics-Urchin-and-Google-Analytics-td3174082.html

Change History (3)

comment:1 Changed 8 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]);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    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 8 years ago by Adam Peller

Component: GeneralDojox
Owner: set to Dustin Machi

comment:3 Changed 4 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.