changeFrequency( )


Gets how frequently the page is likely to change.

The value of the changeFrequency property provides general information to search engines and may not correlate exactly to how often they crawl the page.

Valid values:

  • "always"
  • "hourly"
  • "daily"
  • "weekly"
  • "monthly"
  • "yearly"
  • "never"
Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get the change frequency of the sitemap entry
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

lastModified( )


Gets when the page data was last modified.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<Date>
Get the sitemap entry last modified date
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

pageName( )


Gets the page name.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get the name of the sitemap entry
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

priority( )


Gets the priority of this URL relative to other URLs on your site.

The value of the priority property lets search engines know which pages you deem most important. Its value does not affect how your pages are compared to pages on other sites.

Valid values range from 0.0 to 1.0.

The default priority of a page is 0.5.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<number>
Get the relative priority of the sitemap entry
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

title( )


Gets the page title.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get the title of the sitemap entry
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

url( )


Gets the relative url of the page.

Method Declaration
Copy
function url(): Promise<string>;
Request
This method does not take any parameters
Returns
Return Type:Promise<string>
Get the sitemap entry relative URL
JavaScript
import { site } from "@wix/site-site"; // ... site.routerSitemap("routerPrefix").then((routerSitemap) => { const firstEntryRelativeUrl = routerSitemap[0].url; // '/apartments/cozy-condo' });
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?