<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Screen Time",
  "identifier" : "/documentation/ScreenTime/STWebpageController/setBundleIdentifier(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Screen Time"
    ],
    "preciseIdentifier" : "c:objc(cs)STWebpageController(im)setBundleIdentifier:error:"
  },
  "title" : "setBundleIdentifier(_:)"
}
-->

# setBundleIdentifier(_:)

Changes the bundle identifier used to report web usage.

```
func setBundleIdentifier(_ bundleIdentifier: String) throws
```

## Parameters

`bundleIdentifier`

The bundle identifier that can be changed to facilitate web usage
reporting for a parent web browser from one of its helper processes or extensions.

## Discussion

This is only supported for web browsers that have been properly registered with Screen Time.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)