The following article applies to Global Delivery Network, Application Resource File, Business Document, and CMS Connector project types.
Manage configuration at Global Delivery Network > Configuration.
SEO <link> Tags
You can improve Search Engine Optimization (SEO) by using hreflang links in your site's HTML headers and Smartling automatically includes the appropriate link for each delivered language page. The Global Delivery Network > Configuration > HTML Settings > SEO <link> tags page provides you with example code specific to the home page of your site. For more information, see: How Can I Geotarget Metadata for SEO?
Use Web Settings to modify how Smartling handles various web elements such as HTML tags and cookies.
Smartling automatically makes the HTML tag attributes "title", "alt", and "placeholder" available for translation, but you can add additional tag attributes.
To include HTML tag attributes for translation:
- At Global Delivery Network > Configuration > HTML Settings > Web Settings > Tag Attributes, enter the HTML tag attributes and click Add.
An HTTP cookie is a text-only string stored in the memory of your browser and used by websites to exchange state information such as preferences or shopping cart contents.
By default, Smartling rewrites cookie domains to the root domain of the site for all cookies. For example, if your domain is www.mysite.com, Smartling will rewrite the domain for cookies to .mysite.com, ensuring that all language sites work with your site's session and cookies. You can modify this by either turning off cookie rewriting or by customizing how Smartling rewrites cookies.
To prevent Smartling from rewriting cookies:
- At Global Delivery Network > Configuration > HTML Settings > Web Settings > Cookies move the cookie rewriting slider to Off.
To customize Smartling's cookie rewriting:
- At Global Delivery Network > Configuration > HTML Settings > Web Settings > Cookies move the cookie rewriting slider to On.
- In the From box, enter the cookie domains you want to rewrite.
- In the To box, enter the target domains.
- Click Save.
By default, Smartling will translate content on all URLs on your site, and will rewrite the URL for the localized domain; for example, for Spanish www.mysite.com becomes es.mysite.com. At Global Delivery Network > Configuration > Rules, you can create rules to have Smartling not translate and rewrite specific URLs based on matching conditions such as URL, class name, and element ID. You can also have Smartling continue to provide translations, but not ingest any new content from a URL.
For example, you may want to exclude all user names from translation. If a related class such as "username" appears throughout your project, you can create a Do Not Translate (DNT) rule to exclude this content.