From 27cc64af94db26d14c0f754dc298f360ea01a80e Mon Sep 17 00:00:00 2001 From: johnjeremiah Date: Thu, 23 Apr 2026 07:44:36 -0700 Subject: [PATCH] Moving ActiveCampaign tag to footer (#43939) Troubleshooting activecampaign tag not firing from the head. ## Summary by CodeRabbit * **Chores** * Adjusted analytics/tracking script so it's emitted only in production and moved to load near the end of the page, reducing impact on initial page rendering; the script is omitted in non-production environments. --- website/views/layouts/layout.ejs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/website/views/layouts/layout.ejs b/website/views/layouts/layout.ejs index c138b6b7ca..1de6c10469 100644 --- a/website/views/layouts/layout.ejs +++ b/website/views/layouts/layout.ejs @@ -140,13 +140,6 @@ a.appendChild(r); })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); - <% /* ActiveCampaign */ %> - <% } /* Otherwise, any such scripts are excluded, and we instead inject a robots/noindex meta tag to help prevent any unwanted visits from search engines. */ @@ -1114,5 +1107,14 @@ } }); + <% if (sails.config.environment === 'production') { %> + <% /* ActiveCampaign */ %> + + <% } %>