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 <tech4compu...@gmail.com> 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 <kur...@google.com> 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 
> > <edward.bar...@idiomag.com>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 chromium-extensi...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > chromium-extensions+unsubscr...@googlegroups.com<chromium-extensions%2Bunsu
> > >  bscr...@googlegroups.com>
> > > .
> > > 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 chromium-extensi...@googlegroups.com.
To unsubscribe from this group, send email to 
chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to