     }
     
     private func appName() -> String {
-        return NSBundle(forClass: self.dynamicType).objectForInfoDictionaryKey(kCFBundleNameKey as String) as! String
+        return appBundle.objectForInfoDictionaryKey(kCFBundleNameKey as String) as! String
     }
     
     private func appVersion() -> String {
-        return NSBundle(forClass: self.dynamicType).objectForInfoDictionaryKey(kCFBundleVersionKey as String) as! String
+        return appBundle.objectForInfoDictionaryKey(kCFBundleVersionKey as String) as! String
     }
     
     private func appID() -> String {
-        return NSBundle(forClass: self.dynamicType).bundleIdentifier!
+        return appBundle.bundleIdentifier!
     }
     
     private func screenResolution() -> String {

        if let uid = userID {
            params["uid"] = uid
        }
        return params
    }
    


public class Manager: NSObject {
    let trackingID: String
    let appBundle: NSBundle
    let userID: String?
    let apiBase = "https://ssl.google-analytics.com/collect"
    let GAClientIDKey = "GAClientIDKey"
    
    var requestManager: Alamofire.Manager!
    
    public init(trackingID: String, appBundle: NSBundle, userID: String?) {
        self.trackingID = trackingID
        self.appBundle = appBundle
        self.userID = userID
        
        super.init()
