I'm trying this patch now, and will let you know if stats start flowing through. There has been a fix for the underlying bug (http:// code.google.com/p/chromium/issues/detail?id=31867) but it will take time to propagate.
Ed On Jan 13, 2:09 pm, tech4computer <[email protected]> wrote: > I haven't tried this but you can check if below settings would make it > work: > tracker._setDomainName("none"); > tracker._setAllowLinker(true); > tracker._trackPageview() or tracker._initData(); > > Let us know if you find the solution. > > On Jan 12, 12:00 pm, Arne Roomann-Kurrik <[email protected]> wrote: > > > > > I've been working on a sample for GoogleAnalyticsinside of an extension > > and it turns out that there's a bug which preventsAnalyticsfrom setting > > its tracking cookie inside of an extension. You can > > starhttp://code.google.com/p/chromium/issues/detail?id=31867inorder to stay > > up > > to date on the status of this issue. > > > ~Arne > > > On Tue, Jan 12, 2010 at 12:52 AM, tremorwave > > <[email protected]>wrote: > > > > I've been trying to setup GoogleAnalyticsintegration for our > > > extensions - has anyone else had any luck, anything you can share? At > > > the moment in background.html I have: > > > > <script src='http://www.google-analytics.com/ga.js'type='text/ > > > javascript'></script> > > > <script> > > > var tracker; > > > function setupTracking() { > > > try { > > > tracker = _gat._getTracker('XXXXXXX'); > > > tracker._setAllowAnchor(true); > > > trackPageview('/init'); > > > } > > > catch(err) { > > > alert(err); > > > } > > > } > > > > function trackPageview(page) { > > > return tracker._trackPageview(page); > > > } > > > </script> > > > > ...and then it can be called from popup.html or options.html using: > > > chrome.extension.getBackgroundPage().trackPageview('/options'); > > > > But I don't seem to be getting any stats coming through on the Google > > >Analyticsreports. Any ideas what I might be missing? > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Chromium-extensions" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<chromium-extensions%2Bunsu > > > [email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/chromium-extensions?hl=en.
-- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.
