Skip to content

typo fixed in readme #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ extension MyAppEvent: EventType {
/// Parameters to be logged
func parameters(for provider: ProviderType) -> [String: Any]? {
switch self {
case let .signup(username):
case let .signup(let username):
return ["username": username]
case let .viewContent(productID):
case let .viewContent(let productID):
return ["product_id": productID]
case let .purchase(productID, price):
case let .purchase(let productID, let price):
return ["product_id": productID, "price": price]
}
}
Expand All @@ -116,7 +116,7 @@ You can define an `Analytics` instance anywhere but it's recommended to define a
let analytics = Analytics<MyAppEvent>()
```

Then you should register providers. A prodiver is a wrapper for an actual analytics service such as Firebase and Fabric Answers. It's recommended to register providers in `application(_:didFinishLaunchingWithOptions:)`.
Then you should register providers. A provider is a wrapper for an actual analytics service such as Firebase and Fabric Answers. It's recommended to register providers in `application(_:didFinishLaunchingWithOptions:)`.

```swift
analytics.register(provider: AnswersProvider())
Expand Down