You can also feed custom data to GTM by sending data through a
My colleague Sebastian made a great package that makes installing GTM in your Laravel app a breeze. If you just want a basic installation you'll have to follow the easy install instructions and include a view in your layout.
If you want to use the
dataLayer the package provides some handy methods for that. You can even define macros so you can manage the data you want to sent to GTM in one place.
You can read more instructions on how to use the package on GitHub: