From 04b9fc1133650762046c1b52dcb534f45c9f9adb Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 20 Oct 2025 21:57:17 +0000 Subject: [PATCH] Increase GTM head tag priority to ensure it loads before all CSS and JS Changed the priority of the GTM tag in the head section from 100 to 10000. This ensures the Google Tag Manager container code is placed at the very beginning of the tag, before any CSS or JavaScript files, following Google's best practice recommendations for GTM implementation. Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/DependencyInjection/GtmExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DependencyInjection/GtmExtension.php b/src/DependencyInjection/GtmExtension.php index 373425b..edbb90f 100644 --- a/src/DependencyInjection/GtmExtension.php +++ b/src/DependencyInjection/GtmExtension.php @@ -49,7 +49,7 @@ protected function prependSyliusTwigHooks(ContainerBuilder $container): void 'gtm' => [ 'template' => '@GtmPlugin/head.html.twig', 'enabled' => '%gtm.inject%', - 'priority' => 100, + 'priority' => 10000, ], ], 'sylius_shop.base.header' => [