Create Custom Plugin

Prev Next

Create a Custom Plugin to extend your container with custom code.


Prerequisites

  • Access to Tag Integration

  • A container where the plugin will be used

  • The required code or external file reference for the plugin


Procedure

  1. Navigate to Tag Integration.

  2. Open Custom Plugins.

  3. Click Create plugin.

  4. Enter a Name for the plugin.

  5. (Optional) Enter one or more Files if the plugin requires external files.

  6. Select a Category to group plugins for easier selection in the UI.

  7. Select the Position where the plugin should be executed.

  8. (Optional) Select a Template if a predefined template should be used.

  9. Enter the plugin code in Content.

  10. Select the Language.

  11. (Optional) Enable Use 'document.write' if the plugin uses this method.

  12. Click Create.


Result

The custom plugin is created and appears in the Custom Plugins Overview. You can then assign it to a container and use rules to control when it is executed.


Best Practices

  • Use clear plugin names that describe the purpose of the plugin.

  • Only enable document.write when the plugin requires it.

  • Test custom plugins in a staging environment before using them in production.