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
Navigate to Tag Integration.
Open Custom Plugins.
Click Create plugin.
Enter a Name for the plugin.
(Optional) Enter one or more Files if the plugin requires external files.
Select a Category to group plugins for easier selection in the UI.
Select the Position where the plugin should be executed.
(Optional) Select a Template if a predefined template should be used.
Enter the plugin code in Content.
Select the Language.
(Optional) Enable Use 'document.write' if the plugin uses this method.
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.writewhen the plugin requires it.Test custom plugins in a staging environment before using them in production.