Skip to content

Commit 72092e8

Browse files
Update code formatting in explainer (issue #56)
1 parent 0d6c4a7 commit 72092e8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

explainer.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,16 @@ Given the complexities of existing privacy choice and consent frameworks, sites
150150

151151
Where industry standards set specific strings or signals that are needed to communicate people’s privacy choices, sites should anticipate translating GPC into the downstream signal. A good example of such setting is handling GPC to set California-based US Privacy Strings for advertising technology:
152152

153-
![USPAPI](assets/images/USPAPI.png)
153+
```javascript
154+
if (
155+
navigator.globalPrivacyControl &&
156+
identityObject.geoState === 'CA'
157+
) {
158+
this.uspapi.uspStringSet = true;
159+
this.uspapi.setUSPString(`1YYY`);
160+
} else if
161+
```
162+
154163
Setting the USPAPI for propagating GPC downstream.
155164

156165
Generally website developers should consider GPC signals to be identical to a user flipping the opt out switch on their website and take action accordingly.

0 commit comments

Comments
 (0)