Skip to content

zunda-pixel/googleanalytics-swift

Repository files navigation

GoogleAnalytics for Swift

let client = GoogleAnalytics(
  httpClient: .urlSession(.shared),
  appId: "1:211175559289:ios:121555f3c816aecc3cd5d8"
  apiSecret: "bCab-SdfDBi2L3ZPaYHYfw",
  appInstanceId: UUID().uuidString.replacing("-", with: "")
)

try await client.log(
  for: Event(
    name: "login",
    parameters: ["method": "Google"]
  )
)

About

Google Analytics REST API Client for Swift

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages