From 199d15976134cda316e519fec9bdfb29cb73c89f Mon Sep 17 00:00:00 2001 From: "melaniekung." <71947221+melaniekung@users.noreply.github.com> Date: Tue, 10 Sep 2024 11:49:07 -0700 Subject: [PATCH] Move GA4 tracking code to head element (#1869) --- .../modules/default/templates/_googleAnalytics.php | 11 +++++++++++ apps/qubit/templates/_footer.php | 12 ------------ apps/qubit/templates/layout.php | 1 + apps/qubit/templates/layout_1col.php | 1 + apps/qubit/templates/layout_2col.php | 1 + apps/qubit/templates/layout_3col.php | 1 + apps/qubit/templates/layout_basic.php | 1 + apps/qubit/templates/layout_wide.php | 1 + .../templates/_layout_start_webpack.php | 1 + 9 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 apps/qubit/modules/default/templates/_googleAnalytics.php diff --git a/apps/qubit/modules/default/templates/_googleAnalytics.php b/apps/qubit/modules/default/templates/_googleAnalytics.php new file mode 100644 index 0000000000..4ea7406384 --- /dev/null +++ b/apps/qubit/modules/default/templates/_googleAnalytics.php @@ -0,0 +1,11 @@ + + + + + diff --git a/apps/qubit/templates/_footer.php b/apps/qubit/templates/_footer.php index 769456407f..4565358582 100644 --- a/apps/qubit/templates/_footer.php +++ b/apps/qubit/templates/_footer.php @@ -18,15 +18,3 @@ - - - - - - diff --git a/apps/qubit/templates/layout.php b/apps/qubit/templates/layout.php index cec0cdb31f..a3560a2231 100644 --- a/apps/qubit/templates/layout.php +++ b/apps/qubit/templates/layout.php @@ -1,6 +1,7 @@
+ 'script']); ?> diff --git a/apps/qubit/templates/layout_1col.php b/apps/qubit/templates/layout_1col.php index 76c8c0609e..0982e8050d 100644 --- a/apps/qubit/templates/layout_1col.php +++ b/apps/qubit/templates/layout_1col.php @@ -1,6 +1,7 @@ + 'script']); ?> diff --git a/apps/qubit/templates/layout_2col.php b/apps/qubit/templates/layout_2col.php index a09dbcb527..743de39c65 100644 --- a/apps/qubit/templates/layout_2col.php +++ b/apps/qubit/templates/layout_2col.php @@ -1,6 +1,7 @@ + 'script']); ?> diff --git a/apps/qubit/templates/layout_3col.php b/apps/qubit/templates/layout_3col.php index 9240c7d1ca..3ed45f7baa 100644 --- a/apps/qubit/templates/layout_3col.php +++ b/apps/qubit/templates/layout_3col.php @@ -1,6 +1,7 @@ + 'script']); ?> diff --git a/apps/qubit/templates/layout_basic.php b/apps/qubit/templates/layout_basic.php index 69c5389fe0..78b8fb2451 100644 --- a/apps/qubit/templates/layout_basic.php +++ b/apps/qubit/templates/layout_basic.php @@ -1,6 +1,7 @@ + 'script']); ?> diff --git a/apps/qubit/templates/layout_wide.php b/apps/qubit/templates/layout_wide.php index 74a062ceb0..67a2112df7 100644 --- a/apps/qubit/templates/layout_wide.php +++ b/apps/qubit/templates/layout_wide.php @@ -1,6 +1,7 @@ + 'script']); ?> diff --git a/plugins/arDominionB5Plugin/templates/_layout_start_webpack.php b/plugins/arDominionB5Plugin/templates/_layout_start_webpack.php index 6756d67914..5438f43c58 100644 --- a/plugins/arDominionB5Plugin/templates/_layout_start_webpack.php +++ b/plugins/arDominionB5Plugin/templates/_layout_start_webpack.php @@ -1,6 +1,7 @@ +