Jump to content

Manually installing google tags not working


duckmansweb

Recommended Posts

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 :D

Capturedfdfdf.JPG

Edited by duckmansweb
Link to comment
Share on other sites

  • duckmansweb changed the title to Manually installing google tags not working

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.

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...