Hella and Olivia,
Google Analytics code "must" be added within the <head></head> - usually just before the closing </head>
According to everything I find in Themler, adding the code to the Settings >> Additional Head HTML is "supposed" to work - but it does not.
I've added it, confirmed by closing the template and then reopening, reviewing each of the various template pages within Themler, and "every" part of the template indicates that the code is as stated (above).
However, when viewing the "source" for any page of the site, there is NO code!
I've reviewed the various template files within Joomla (Extensions >> Templates >> Templates >> ?themeler template? >>) and none of them show the code that is clearly in the "Additional Head HTML" box.
After 5 or 6 attempts to figure out the reason it wasn't appearing, even after I'd cleared Joomla cache, refreshed the pages, refreshed and re-saved the template (many times), nothing worked.
Then, in the Themler editor, I went to File >> CMS >> Refresh Content
The code finally appeared just before the </head> tag as expected.
Please have the developers review this to find out why the "Additional Head HTML" code doesn't appear immediately. It seems there is something wrong with the cache that's only related to that additional code. Any other changes to the template are immediate after saving the changes.
UPDATE!
The first site I described (above) uses only 1 template.
If you use 2 (or more) different templates in the same site, the analytics code will not work in the pages that have been assigned a template "other" than the "default" template.
I'm using 1 template for the home page, and another template for the default pages (etc.), and 1 template assigned to 1 page in order to have a slider appear on only that 1 page.
The analytics code only appears on the home page. That template was originally the only template and is assigned as the default template.
I've saved, reloaded, refreshed, cleared cache, done everything I can think and the analytics code only appears in the home page. I even switched and made the secondary template the default, but that was no help.
This "must" be addressed or those of us who are dependent upon reviewing our analytics will have no way to monitor site statistics.
My "workaround":
I added the analytics code directly to the "/templates/page_7.php" and that worked...for the pages using that template. I also added the code to /templates/page_10.php and that worked to get the code on my single page using its own template. I also added the code to /templates/page_6.php, /templates/home_1.php, /templates/default_2.php, hoping that any other page would have the analytics. I'm not selling anything, so I'm not concerned about the productoverview or products_3 pages.
This amounts to what I have always done with Joomla - add analytics to the "index.php" of any template I'm using. Only with Themler, all of the /templates/ pages need to have the code added.
If the developers can get Themler to actually "include" the code that appears in "Additional Head HTML" to "every" template, regardless of which template is assigned as the default template for the site, then I'll remove the code from where I had to manually add analytics in order for every page of the site to have analytics code appear.
Thanks.
Thomas
Hella and Olivia,
Google Analytics code "must" be added within the <head></head> - usually just before the closing </head>
According to everything I find in Themler, adding the code to the Settings >> Additional Head HTML is "supposed" to work - but it does not.
I've added it, confirmed by closing the template and then reopening, reviewing each of the various template pages within Themler, and "every" part of the template indicates that the code is as stated (above).
However, when viewing the "source" for any page of the site, there is NO code!
I've reviewed the various template files within Joomla (Extensions >> Templates >> Templates >> ?themeler template? >>) and none of them show the code that is clearly in the "Additional Head HTML" box.
After 5 or 6 attempts to figure out the reason it wasn't appearing, even after I'd cleared Joomla cache, refreshed the pages, refreshed and re-saved the template (many times), nothing worked.
Then, in the Themler editor, I went to File >> CMS >> Refresh Content
The code finally appeared just before the </head> tag as expected.
Please have the developers review this to find out why the "Additional Head HTML" code doesn't appear immediately. It seems there is something wrong with the cache that's only related to that additional code. Any other changes to the template are immediate after saving the changes.
UPDATE!
The first site I described (above) uses only 1 template.
If you use 2 (or more) different templates in the same site, the analytics code will not work in the pages that have been assigned a template "other" than the "default" template.
I'm using 1 template for the home page, and another template for the default pages (etc.), and 1 template assigned to 1 page in order to have a slider appear on only that 1 page.
The analytics code only appears on the home page. That template was originally the only template and is assigned as the default template.
I've saved, reloaded, refreshed, cleared cache, done everything I can think and the analytics code only appears in the home page. I even switched and made the secondary template the default, but that was no help.
This "must" be addressed or those of us who are dependent upon reviewing our analytics will have no way to monitor site statistics.
My "workaround":
I added the analytics code directly to the "/templates/page_7.php" and that worked...for the pages using that template. I also added the code to /templates/page_10.php and that worked to get the code on my single page using its own template. I also added the code to /templates/page_6.php, /templates/home_1.php, /templates/default_2.php, hoping that any other page would have the analytics. I'm not selling anything, so I'm not concerned about the productoverview or products_3 pages.
This amounts to what I have always done with Joomla - add analytics to the "index.php" of any template I'm using. Only with Themler, all of the /templates/ pages need to have the code added.
If the developers can get Themler to actually "include" the code that appears in "Additional Head HTML" to "every" template, regardless of which template is assigned as the default template for the site, then I'll remove the code from where I had to manually add analytics in order for every page of the site to have analytics code appear.
Thanks.
Thomas
Last edited 21 February 2016 by tmgarrison