End of Support for Joomla 3 - Forum closed
[SOLVED] Problem with Google analytics
- raziel1973
- Offline Topic Author
- Junior Boarder
- Posts: 28
- Thank you received: 0
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
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
by raziel1973
Please Log in or Create an account to join the conversation.
- joomlaplates
- Offline
- Moderator
- Posts: 8807
- Thank you received: 1732
Hello,
you can put your Google code into the PHP file of the theme
layouts/theme.php
you can put your Google code into the PHP file of the theme
layouts/theme.php
Dokumentation:
www.joomlaplates.de/dokumentation.html
www.joomlaplates.de/dokumentation.html
by joomlaplates
Please Log in or Create an account to join the conversation.
- raziel1973
- Offline Topic Author
- Junior Boarder
- Posts: 28
- Thank you received: 0
- raziel1973
- Offline Topic Author
- Junior Boarder
- Posts: 28
- Thank you received: 0
Replied by raziel1973 on topic [SOLVED] Problem with Google analytics
Posted 4 years 2 months ago #27434
Problem solved.
by raziel1973
Please Log in or Create an account to join the conversation.
Moderators: joomlaplates