How it goes
Add the line in Drupal
You need access to your Drupal theme files.
- Add the libraryIn your theme folder, open THEME.libraries.yml and add the script as an external one: use the address from your line's src, set type: external, and under attributes add data-agent with the value from your line, and defer: true.
- Enable it in your themeIn THEME.info.yml, add that library under libraries so it is available everywhere in the theme.
- Save and deploySave both files and deploy them the way you usually do.
Example conversation on a sample site.














