Hi, I want put the analitycs code not in the plugin of the template
but in the code.
I want konw if is true put the analutycs code in: /public_html/templates/gk_twn2/layouts/blocks/head.php
Thanks
bkrztuk wrote:There is no way that code track not full data, but if you want to you need to add this code to this mentioned file.
Once you find the code snippet, copy and paste it into your web page, just before the closing </head> tag*. If your website uses templates to generate pages, enter it just before the closing </head> tag in the file that contains the <head> section. (Most websites re-use one file for common content, so it's likely that you won't have to place the code snippet on every single page of your website.)
</head>
bkrztuk wrote:Once you find the code snippet, copy and paste it into your web page, just before the closing </head> tag*. If your website uses templates to generate pages, enter it just before the closing </head> tag in the file that contains the <head> section. (Most websites re-use one file for common content, so it's likely that you won't have to place the code snippet on every single page of your website.)
(http://support.google.com/googleanalyti ... wer=174090)
If you check the Google help pages you will know that the best place is before closingtag co before </body> place is not the best solution.
- Code: Select all
</head>
For the best performance across all browsers we suggest you position other scripts in your site in one of these ways:
before the tracking code snippet in the <head> section of your HTML
after both the tracking code snippet and all page content (e.g. at the bottom of the HTML body)
bkrztuk wrote:There is no way that analytics work bad, analytics works or doesn't work - you got only 0 or 1 state. You can paste this code wherever you want to - effect will be the same.