Hi,
I have insert VDigital code, but if I view html code in my browser don't have Analytics code
Last edited by Ericnet (2010-06-28 21:59:58)
Offline
[extension by Piwigo Team] LocalFiles Editor
Templates
Edit your footer.tpl (to make sure create a new one based on default/template/footer.tpl)
Insert
Analytics Standard codes in your footer.tpl before
</div> <!-- copyright -->
{literal}
<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>
{/literal}
Don't forget to replace UA-xxxxxx-x by your Google Analytics web property ID.
When done don't forget to active your footer.tpl in Admin > Configuration > template.
Offline
helpful...its workinf fine with {literal} tag..
thanks
maddy wrote:
helpful...its workinf fine with {literal} tag..
thanks
Did you try [extension by sakkhho] Statistics? It's the simplest way to have Google Analytics on your Piwigo gallery.
Offline