Insert Custom Code

Insert Custom Code

Configuration Item: inject

This feature allows you to insert custom code into your page, such as tracking code, click styles, and various CSS/JS code.


In the Redefine theme configuration file _config.redefine.yml, you can configure the following options in the inject section:

  • enable: Whether to enable this feature. Set to true to enable, false to disable.
  • head: Code to be inserted into the page header, such as tracking code.
  • footer: Code to be inserted into the page footer, such as click styles.