DataRetentionSettings
データ保持の設定値。これはシングルトン リソースです。
フィールド |
name |
string
出力専用。この DataRetentionSetting リソースのリソース名。形式: properties/{property}/dataRetentionSettings
|
eventDataRetention |
enum (RetentionDuration )
必須。イベントレベルのデータが保持される期間。
|
userDataRetention |
enum (RetentionDuration )
必須。ユーザー単位のデータが保持される期間。
|
resetUserDataOnNewActivity |
boolean
true に設定すると、そのユーザーからのすべてのイベントでユーザー識別子の保持期間がリセットされます。
|
RetentionDuration
列挙型 |
RETENTION_DURATION_UNSPECIFIED |
データの保持期間が指定されていません。 |
TWO_MONTHS |
データの保持期間は 2 か月です。 |
FOURTEEN_MONTHS |
データの保持期間は 14 か月です。 |
TWENTY_SIX_MONTHS |
データの保持期間は 26 か月です。360 プロパティでのみ使用できます。イベントデータでのみ使用できます。 |
THIRTY_EIGHT_MONTHS |
データ保持期間は 38 か月です。360 プロパティでのみ使用できます。イベントデータでのみ使用できます。 |
FIFTY_MONTHS |
データの保持期間は 50 か月です。360 プロパティでのみ使用できます。イベントデータでのみ使用できます。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-01-30 UTC。
[null,null,["最終更新日 2025-01-30 UTC。"],[[["Data Retention Settings control how long event-level data is stored for a Google Analytics 4 property and are configured as a singleton resource."],["You can set the retention duration for event data to 2, 14, 26, 38, or 50 months, with longer durations available for 360 properties."],["The `resetUserDataOnNewActivity` setting determines whether the user identifier retention period resets with each new event."],["Data Retention Settings use a JSON representation and include fields for name, event data retention duration, and user data reset behavior."]]],["Data retention settings are managed through a singleton resource, defining the duration for retaining event-level and user-level data. Key actions include setting `eventDataRetention` and `userDataRetention` using enumerated values like `TWO_MONTHS`, `FOURTEEN_MONTHS`, `TWENTY_SIX_MONTHS`, `THIRTY_EIGHT_MONTHS`, or `FIFTY_MONTHS`. Another key action is the definition of the reset retention period for each new activity with `resetUserDataOnNewActivity`. The name of the resource is a string value with the format `properties/{property}/dataRetentionSettings`.\n"]]