duckmansweb Posted October 23, 2022 Share Posted October 23, 2022 (edited) Hi guys, im trying to manually install google tags, google instructions are as attached, when i add the below code to skins/foundation/templates/main.php - it crashes the page (whole URL goes blank) Any help would be appreciated, thanks in advance Edited October 23, 2022 by duckmansweb Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 23, 2022 Share Posted October 23, 2022 Please make the following change: {literal} <!-- Google tag (gtag.js) --> ... all the javascript code ... </script> {/literal} That is, surround the supplied code with Smarty's "Take this literally!" command. Otherwise, Smarty will try to interpret anything between braces as commands for itself. 1 Quote Link to comment Share on other sites More sharing options...
Lastwolf Posted October 24, 2022 Share Posted October 24, 2022 the new analytics addon seems to be doing the trick for me. Quote Link to comment Share on other sites More sharing options...
harrisorganic Posted November 20, 2022 Share Posted November 20, 2022 Lastwolf, did you enter your UA-266xxxxx-1 code in the Google Analytics App, Tracking ID, or did you enter a Gtag provided by google in the example above? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.