You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please update the code to do a push instead, then we can attach other dataLayer related data before the head component - like Google Optimize and more. I would also like to setup data in the dataLayer before the GTM is started rendering directly in the layout file.
dataLayer.push( {!! $dataLayer->toJson() !!} );
The text was updated successfully, but these errors were encountered:
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
@AndreasGJ one way you can do this, which I've done is simply override the vendor view files for the head blade template and inserted google optimize code after the dataLayer definition. Works like a charm. So this is totally doable.
laravel-googletagmanager/resources/views/head.blade.php
Line 4 in aadef9d
Please update the code to do a push instead, then we can attach other dataLayer related data before the head component - like Google Optimize and more. I would also like to setup data in the dataLayer before the GTM is started rendering directly in the layout file.
The text was updated successfully, but these errors were encountered: