GoogleAnalytics Add-on

Hi,
I have installed the add-on and in Netbeans my project will not compile. The error is as follows.

mainWindow.addComponent(tracker);
method Window.addComponent(Component) is not applicable
(actual argument GoogleAnalyticsTracker cannot be converted to Component by method invocation conversion)

How can I have the tracker be recognized as a component?

Thank you