Question: I have upgraded my phonegap version to 2.1 and lot of errors are showing.
On the github there is no section talking about google analytics for 2.1.
[GitHub](https://github.com/purplecabbage/phonegap-plugins/tree/master/iOS)

Any idea about how to make them work together

Answer: 
If this is for iOS I recently put together [this](https://github.com/jelled/google-analytics-cordova-ios "https://github.com/jelled/google-analytics-cordova-ios") Git of the plugin code I used to get the latest Google Analytics working with Cordova 2.2.0. Note that the latest Google Analytics SDK uses different frameworks (SystemConfiguration and CoreData rather then libsqlite3.0.dylib) so if you are upgrading don't forget to swap those out.

If this is Android, although I haven't tested them out myself these two Gits purport to work on the latest version of Cordova on Android.

<https://github.com/DoersGuild/Cordova-Android-Analytics>

<https://github.com/Ranhiru/cordova-google-analytics/tree/master/Android>
in the [README](https://github.com/purplecabbage/phonegap-plugins/blob/master/iOS/GoogleAnalytics/README.md), it said:

> 
> Make sure you are running Cordova(PhoneGap) 1.5.0
> 
> 
> 

In short, the plugin does not support PhoneGap 2.1 .