My webmaster is on vacation and I need a way to add Google Analytics code on my blog. I’ve looked everywhere and couldn’t find the header file where to place code.
I don’t have the site on a live server yet but here’s an example of the blog path.
example.com/blogs/blog
I have a “Blogs” folder located at /public_html/app/views/blogs but all the files in there don’t have the tags where I can place GA code. Is there somewhere else I need to look for and index file?
I put code in /public_html/app/views/layouts/index.ctp, it’s only showing on the main site page but not the blog.
Please help – thanks
CakePHP headers and footers are together in a layout file.
The default layout file is
views/layouts/default.ctp.