Jump to content

Where to add Google Analytics script code ?


Tanjiro

Recommended Posts

I know this is very basic question but I also searched in the forum and I don't see any topics ask or show how to add Google Analytics code

I can add GA code directly in include_header_general but I don't know if this is a correct way to do or there is somewhere else like a section in KVS I didn't know ?

Link to comment
Share on other sites

Yes, this is correct and one of the option. But for performance reasons would be better to put GA code in site footer (I would recommend to include any 3rd-party JS files in site footer for optimization). Not sure if this allowed by GA scripts or they need to be put inside <head>. The site footer template is include_footer_general.tpl.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...