Re: Which Domain Should Be Canonical?
BTW, I finally found the current way to tag a page as family friendly or NSFW⦠Schema.org has a solution and Google loves Schema.orgâ¦
Here’s an example of a NSFW pageâ¦
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "https://bbbh.com/pornstar/mike-dozer?dev=1",
"name": "Porn Star Mike Dozer",
"headline": "Porn Star Mike Dozer - #BBBH",
"publisher": "Studio 3X, Inc.",
"isFamilyFriendly": "False",
"typicalAgeRange": "18-99",
"audience": {
"@type": "PeopleAudience",
"requiredMinAge": "18",
"suggestedGender": "male",
"audienceType": "gay men"
}
}
</script>
And here’s an example of a SFW pageâ¦
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "https://maleprime.com/pornstar/mike-dozer?dev=1",
"name": "Porn Star Mike Dozer",
"headline": "Porn Star Mike Dozer - Male Prime",
"publisher": "Studio 3X, Inc.",
"isFamilyFriendly": "True",
"typicalAgeRange": "13-99",
"audience": {
"@type": "PeopleAudience",
"requiredMinAge": "13",
"suggestedMinAge": "16",
"suggestedGender": "male",
"audienceType": "gay men"
}
}
</script>
You put that in the <head> of your page and it defines Schema.org-defined properties about your web page as defined by https://schema.org/WebSite. (And yes, you might expect a WebPage property, but it’s WebSite that you actually use. Confused me a bit when I first encountered it. So you’re saying for a particular URL, it has a particular title (defined by ‘name’ and ‘headline’ â there’s some discussion which is better, both are defined properties), etc. The critical elements for NSFW are:
“isFamilyFriendly”: “False”,
“typicalAgeRange”: “18-99”,
That indicates that it’s not family friendly and it should be targeted to people at least 18 years of age. On Safe For Work pages you have True and a lower starting age (make sure that age is 13+ to be COPPA compliant).
Then you can go further by using the PeopleAudience attribute to say that the required minimum age is 13 or 18. You can also specify that while the required minimum age is 13 you really suggest it for a higher age (e.g. 16 in the example).
There’s a bunch of other stuff you can include. You see some of it in the examples above.
When you’re all done, run your page through the Google Structured Data Testing Tool to make sure you formatted things correctly.