Moving ActiveCampaign tag to footer (#43939)
Troubleshooting activecampaign tag not firing from the head. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## 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. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Vendored
+9
-7
@@ -140,13 +140,6 @@
|
||||
a.appendChild(r);
|
||||
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
|
||||
</script>
|
||||
<% /* ActiveCampaign */ %>
|
||||
<script>
|
||||
(function(e,t,o,n,p,r,i){e.visitorGlobalObjectAlias=n;e[e.visitorGlobalObjectAlias]=e[e.visitorGlobalObjectAlias]||function(){(e[e.visitorGlobalObjectAlias].q=e[e.visitorGlobalObjectAlias].q||[]).push(arguments)};e[e.visitorGlobalObjectAlias].l=(new Date).getTime();r=t.createElement("script");r.src=o;r.async=true;i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)})(window,document,"https://diffuser-cdn.app-us1.com/diffuser/diffuser.js","vgo");
|
||||
vgo('setAccount', '652899825');
|
||||
vgo('setTrackByDefault', false);
|
||||
vgo('process');
|
||||
</script>
|
||||
<% }
|
||||
/* 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 @@
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<% if (sails.config.environment === 'production') { %>
|
||||
<% /* ActiveCampaign */ %>
|
||||
<script>
|
||||
(function(e,t,o,n,p,r,i){e.visitorGlobalObjectAlias=n;e[e.visitorGlobalObjectAlias]=e[e.visitorGlobalObjectAlias]||function(){(e[e.visitorGlobalObjectAlias].q=e[e.visitorGlobalObjectAlias].q||[]).push(arguments)};e[e.visitorGlobalObjectAlias].l=(new Date).getTime();r=t.createElement("script");r.src=o;r.async=true;i=t.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i)})(window,document,"https://diffuser-cdn.app-us1.com/diffuser/diffuser.js","vgo");
|
||||
vgo('setAccount', '652899825');
|
||||
vgo('setTrackByDefault', false);
|
||||
vgo('process');
|
||||
</script>
|
||||
<% } %>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user