Advertisement
fritzmg

Contao 4 en forum problem

Dec 18th, 2017
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. You could also do the following:
  2.  
  3. [list=1][*]Under [i]System[/i] » [i]Settings[/i] go to [i]Security Settings[/i] and add [i]<script>[/i] to [b]Allowed HTML tags[/b] (if it's not there already).
  4. [*]Go to [i]Themes[/i] » Your Theme » [i]Modules[/i] and create a new module of type [i]HTML[/i].
  5. [*]Insert your Google Tag Manager Script there.
  6. [*]Go to [i]Themes[/i] » Your Theme » [i]Page layouts[/i] and edit your page layout.
  7. [*]Under [i]Front end modules[/i] add your newly created module to the list of [b]Included modules[/b].
  8. [*]If you have multiple page layouts, you need to repeat steps 4 and 5.[/list]
  9.  
  10. [i]Note:[/i] best practice would be to create a custom section for such scripts in your page layout, preferably outside of the wrapper (may be only possible by default in Contao 4).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement