Casa > Base de Conhecimento > Adicionando regras de substituição personalizadas

Adicionando regras de substituição personalizadas

Custom Replace Rules allow your developers to replace any piece of text or code on your website within minutes.

To add Custom Replace Rules, you must create a new domain for your language in the Localizer dashboard before you can proceed. This can be done by visiting the language settings and clicking on SEO Settings.

Custom Replace Rules are ideal for replacing Google Tracking IDs, allowing you to track the performance of each language domain separately in your Google Analytics dashboard. Just create a new tracking code for each domain in your Google Analytics dashboard and use Localizer's Custom Replace Rules to add the new code to each domain. Custom Replace Rules are available on the server side only.

Para adicionar uma regra de substituição personalizada, basta seguir os passos abaixo:

 

Passo 1.

Log into your Localizer account and click on the Batch Translator tab, followed by the Settings option beside your selected language.

 

Passo 2.

On the popup menu, click on the drop-down beside "Custom Replace Rules" and enter your desired rules in the format [Original Text]###[New Text], with each new rule being added to a separate line.

Para IDs de rastreamento do Google, insira o ID existente como o texto original e, em seguida, adicione o novo ID como o novo texto.

 

Passo 3.

Click on the Save button at the bottom right of the popup screen to save your changes.