End of Support for Joomla 3 - Forum closed

[SOLVED] Problem with Google analytics

Problem with Google analytics was created by raziel1973

Posted 4 years 2 months ago #27426
Hi and thank you in advance for the help.

I Have this strange problem with google analytics:
I tried to ad the complete script track ID additional script (Template > layout> additional script)
But the there is no communication with Google.
I saw the source code of my web page and the script is placed at the end (in the last line of the body). Not in the head tag.

I tried to put my google code into index.php but nothing works:
if I put it before <?php in the source code I can see the script placed on the top before the head tag.

I f I put it after ?> when I see my source code I can see it placed at the end before the </body>

How I can do to place it into the <head>
thank you

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic Problem with Google analytics

Posted 4 years 2 months ago #27427
Hello,
you can put your Google code into the PHP file of the theme
layouts/theme.php

Please Log in or Create an account to join the conversation.

Replied by raziel1973 on topic Problem with Google analytics

Posted 4 years 2 months ago #27433
It works

Thank you.

Please Log in or Create an account to join the conversation.

Replied by raziel1973 on topic [SOLVED] Problem with Google analytics

Posted 4 years 2 months ago #27434
Problem solved.

Please Log in or Create an account to join the conversation.

Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2024 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License