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 Google Analytics inside of an extension
> and it turns out that there's a bug which prevents Analytics from setting
> its tracking cookie inside of an extension.  You can 
> starhttp://code.google.com/p/chromium/issues/detail?id=31867in order 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 Google Analytics integration 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
> > Analytics reports. 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%2bunsubscr...@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