Skip to content

Commit

Permalink
Replace navigation_bu_distributer with content_bu_owner (#1150)
Browse files Browse the repository at this point in the history
  • Loading branch information
waliid authored Feb 28, 2025
1 parent 5896292 commit 8637b57
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ public struct CommandersActLabels: Decodable {
/// The value of `navigation_property_type`.
public let navigation_property_type: String?

/// The value of `navigation_bu_distributer`.
public let navigation_bu_distributer: String?
/// The value of `content_bu_owner`.
public let content_bu_owner: String?

/// The value of `navigation_level_0`.
public let navigation_level_0: String?
Expand Down Expand Up @@ -137,7 +137,7 @@ private extension CommandersActLabels {
case navigation_device
case consent_services
case navigation_property_type
case navigation_bu_distributer
case content_bu_owner
case navigation_level_0
case navigation_level_1
case navigation_level_2
Expand Down
2 changes: 1 addition & 1 deletion Sources/Analytics/CommandersAct/CommandersActService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final class CommandersActService {
}
event.pageName = pageView.name
event.addNonBlankAdditionalProperty("navigation_property_type", withStringValue: "app")
event.addNonBlankAdditionalProperty("navigation_bu_distributer", withStringValue: vendor?.rawValue)
event.addNonBlankAdditionalProperty("content_bu_owner", withStringValue: vendor?.rawValue)
pageView.levels.enumerated().forEach { index, level in
guard index < 8 else { return }
event.addNonBlankAdditionalProperty("navigation_level_\(index + 1)", withStringValue: level)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ final class CommandersActPageViewTests: CommandersActTestCase {
expect(labels.app_library_version).to(equal(Analytics.version))
expect(labels.navigation_app_site_name).to(equal("site"))
expect(labels.navigation_property_type).to(equal("app"))
expect(labels.navigation_bu_distributer).to(equal("SRG"))
expect(labels.content_bu_owner).to(equal("SRG"))
expect(labels.consent_services).to(equal("service1,service2,service3"))
}
) {
Expand Down

0 comments on commit 8637b57

Please sign in to comment.