Home General questions Troubleshooting Smarty error: 'unrecognized tag...'
Smarty error: 'unrecognized tag...'
If you get the unrecognized tag... Smarty error after adding JavaScript code (tracking code for example) to a template, most probably the inserted JavaScript contains { and } tags. { and } are the Smarty delimiters, so Smarty falsely wants to interpret the JavaScript code in the template.
To avoid the error:
- Open the template where you added the code.
- Enclose the JavaScript code in a {literal}...{/literal} block to prevent Smarty from parsing it:
{literal} your JavaScript code {/literal} - Save the file.
