Google Analytics Code

Hi !

I having somes issues to where to put Google analytics on the site , According to the Forum , they say in the Footer.html . I tried, but Google said it FAIL to verify . I tried put on Banners and the same thing .

The thing is , when I put on Header.html , the top of the website (LOGO) disappeared as you can see at www.gayguidebook.com .

I really appreciate any help . I'm not so good with HTML/PHP,  this kind of stuff

Thanks for reading my post .

Quote · 8 Nov 2011

The code you put in looks incomplete.

It is suppose to be placed in _footer.html just before the closing </body> tag.

Here is an example.

The blue is the origional code in _footer.html and the green is the added google code. Use your code there.
Make sure you do not miss any of the code google provides.

       <bx_injection:injection_footer />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._trackPageview();
} catch(err) {}
</script>

</body>
</html>

After doing that you must clear your dolphin cache.

Also if your running a custom template then it may have it's own _footer.html. Make sure the code in placed in the proper _footer.html file.

https://www.deanbassett.com
Quote · 8 Nov 2011

Hi Deano ! Thanks for your help, and your time; it works . Finally Google tracked my site . But the top of the site still shrunken, it happened when I was trying to put the code on header.html between  xml:lang="en-US" lang="en-US">HERE TO Be More precise<head> . When I saw that was not working I undo the operation . After that the top of the site has gone . What to do to get it back .

Thanks again !

Quote · 9 Nov 2011

better put it before the "</head>" closing tag inside _header.html

and clear the file from the cache with deanos tools.

so much to do....
Quote · 9 Nov 2011

If clearing the caches doesn't work just replace that file with the original one from the Dolphin zip. Then put the analytics code directly before the </head> line.

BoonEx Certified Host: Zarconia.net - Fully Supported Shared and Dedicated for Dolphin
Quote · 9 Nov 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.