I have this code decorating urls with Analytics' cookie in my webpage.
var tracker = window[window.GoogleAnalyticsObject].getAll()[0];
new window.gaplugins.Linker(tracker).decorate("http://www.toto.com");
This occurs an error :
window[window.GoogleAnalyticsObject].getAll is not a function
window.gaplugins is undefined
Like Google Analytics load its plugin asynchrously, i imagine getAll() and gaplugins.linker functions are not declared yet.
I can't wait the DOM ready, so i would like to force synchrously GA plugin loading.
Thanks for your help