Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: seo organization structured data #655

Closed
wants to merge 8 commits into from

Conversation

hellofanny
Copy link
Contributor

@hellofanny hellofanny commented Jan 23, 2025

What's the purpose of this pull request?

testing vtex/faststore#2623

How does it work?

How to test it?

Faststore related PRs

References

Copy link

vercel bot commented Jan 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
starter ✅ Ready (Inspect) Visit Preview Feb 15, 2025 2:55am

hellofanny added a commit to vtex/faststore that referenced this pull request Feb 18, 2025
## What's the purpose of this pull request?

- Adding
[Organization](https://developers.google.com/search/docs/appearance/structured-data/organization)
structured data in homepage

> Adding organization structured data to your home page can help Google
better understand your organization's administrative details and
disambiguate your organization in search results.

## How it works?

Allow adding the following
[Organization](https://schema.org/Organization) schema proprieties:

- url: the URL of the website of your organization. This helps Google
uniquely identify your organization.
- sameAs: The URL of a page on another website with additional
information about your organization, if applicable. For example, a URL
to your organization's profile page on a social media or review site.
You can provide multiple sameAs URLs.
- logo: A logo url that is representative of your organization, if
applicable. (image
[guidelines](https://developers.google.com/search/docs/appearance/structured-data/organization))
- image: An image that is representative of your organization. This
could also be the same as the logo. Add a ImageObject (provide image url
and caption)
- name: The name of your organization.
- legalName: The registered, legal name of your Organization.
- email: The email address to contact your business, if applicable.
- telephone: A business phone number meant to be the primary contact
method for customers, if applicable.
- address: The address (physical or mailing) of your organization, if
applicable.


> Note: Users can add Organization data through the headless CMS
interface.

### Headless CMS
<img width="636" alt="image"
src="https://github.com/user-attachments/assets/a73765d6-2b21-4593-9d63-e684eed8285c"
/>

TODO: Run cms sync in default acc.

## How to test it?

1. Go to [preview](https://starter-llg52ur11-vtex.vercel.app/) link,
inspect and look for `Organization`

<img width="500" alt="image"
src="https://github.com/user-attachments/assets/6fff3dad-6e4b-4e3d-9f45-0ad22ea7afc3"
/>

2. Copy the generated script and paste [here - google rich
test](https://search.google.com/test/rich-results?utm_campaign=devsite&utm_medium=jsonld&utm_source=merchant)
to test the valid schema:

<img width="1607" alt="image"
src="https://github.com/user-attachments/assets/d9de0173-add6-4154-9746-ef50b30236ba"
/>

OR

1. Test in `storeframework` account, go to CMS admin, changes the fields
values -> Save and Publish.
2. Wait for the new preview link and do the same process mention above
(look for `organization` and validate the schema)

### Starters Deploy Preview

vtex-sites/starter.store#655

## References

- [Google rich
test](https://search.google.com/test/rich-results?utm_campaign=devsite&utm_medium=jsonld&utm_source=merchant)
- [Schema.org](https://schema.org/Organization)
@hellofanny hellofanny closed this Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant