hi im a basic user and my web site is tylerandsons.co.uk i have managed to add my site to google web master but know im having problems adding the tracking code to my site using easynsite wizard. any ideas of how i can do this are welcome
There should be an icon on the top of the easy site wizard editor that looks like a pencil for advanced options. Choose "Edit Html Source" and you can add raw code into your site from there.
Hope this helps.
iv tried doing it that way. the instructions i have been given by google are below do you know if its possible to do this and how with easysite wizard?
Copy the following code, then paste it onto every page you want to track immediately before the closing </head> tag
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-18833350-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src=('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
In that case it might be a bit more difficult. You can access the head tag, and everything before the body tag, by pulling the file directly, in file manager for example. The downside being that you would have to do this each time you publish with Easy site wizard as the editor has no way to recognize that you have made these changes so each time it publishes it it would overwrite your changes.
Hope this helps.
thank you for the reply i have uploaded things through file manager befor but could you give me step by step instructions.. i think this is a very comman problem and would be a great help thanks again.
Sure, after you have opened File Manager double click the public folder under "Source dir" and single click any file you want to add this code to and choose "Edit" on the left. This will bring up the code in a text file where you can insert the code snippet and choose "save" on the bottom.
cheers thats a great help but i cant find the save button to save the new code
It should be on the pop up where you edit the code on the bottom left. You may have to scroll down or increase the size of the window.
If you are not seeing it there may be some code in the page that file manager does not recognize. In that case you may have to download the file, which you can do in file manager also just hit the download button when you clicked the edit button and it will prompt you to save the file to your computer.
Once downloaded you can edit the file in a standard text editor, I tend towards the OS text editor but notepad from windows is fine also. After the changes are made you can hit "Browse" on your file manager and find the file on your computer. After that hit "upload" on the left and it should be back on the server with the changes you have made. So a slightly more involved process in that case.