Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Gaëtan Muller <[email protected]>
  • Loading branch information
StaehliJ and MGaetan89 authored Nov 30, 2023
1 parent 3ac7b9c commit d93ca74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pillarbox-analytics/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ User consent can be configured at initialization:
val initialUserConsent = UserConsent(
comScore = ComScoreUserConsent.UNKNOWN,
commandersActConsentServices = emptyList()
)
)

val config = AnalyticsConfig(
vendor = AnalyticsConfig.Vendor.SRG,
Expand All @@ -64,10 +64,10 @@ Update user consent at runtime:
val updatedUserConsent = UserConsent(
comScore = ComScoreUserConsent.DECLINED, //or ComScoreUserConsent.ACCEPTED
commandersActConsentServices = listOf("service1_id", "service2_id")
)
)
SRGAnalytics.setUserConsent(updatedUserConsent)
```
User consent values are updated at the next analytics event.
User consent values will be updated with the next analytics event.

### Send page view

Expand Down

0 comments on commit d93ca74

Please sign in to comment.