Hey!
Im not good in php and i wanna put JS from google analytics to my page.
Daniel Kerr said that I have to make footer.tpl file in this directory: view/template/common directory
Can somebody help me with making this file, or make it. I would be gratefull!
Thanks!
Andre
Hi,
Open the script catalog/view/theme/default/template/common/footer.tpl
It should look like this:
Change it to look like this:
Replace "your id" with the id supplied to you and make sure you put it within the quotes (" ").
Phil.
Open the script catalog/view/theme/default/template/common/footer.tpl
It should look like this:
Code: Select all
<div class="div1"><img src="catalog/view/theme/default/image/payment.png" alt="" /></div>
<div class="div2"><?php echo $text_powered_by; ?></div>
Code: Select all
<div class="div1"><img src="catalog/view/theme/default/image/payment.png" alt="" /></div>
<div class="div2"><?php echo $text_powered_by; ?></div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "your id";
urchinTracker();
</script>
Phil.
The problem is that in this directory there is no footer.tpl file. There is only home.tpl, failure.tpl and success.tpl. Have I to do footer.tpl file there?, and put the script you gave me?
The only footer.tpl files are in those directory's:
htdocs\catalog\view\theme\default\template\module
htdocs\admin\view\template\module
Thanks!
Andre
The only footer.tpl files are in those directory's:
htdocs\catalog\view\theme\default\template\module
htdocs\admin\view\template\module
Thanks!
Andre
<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-8510733-1");
pageTracker._trackPageview();
} catch(err) {}</script>
Is the bold text the ID?
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-8510733-1");
pageTracker._trackPageview();
} catch(err) {}</script>
Is the bold text the ID?
I've tried diffrent ways to do this and it didnt worked.
What is wrong?
Thanks!
Andre
Code: Select all
<div class="div1"><img src="catalog/view/theme/default/image/payment.png" alt="" /></div>
<div class="div2"><?php echo $text_powered_by; ?></div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-8510733-1";
urchinTracker();
</script>
Code: Select all
<div class="div1"><img src="catalog/view/theme/default/image/payment.png" alt="" /></div>
<div class="div2"><?php echo $text_powered_by; ?></div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-8510733-1");
pageTracker._trackPageview();
} catch(err) {}</script>
Code: Select all
<div class="div1"><img src="catalog/view/theme/default/image/payment.png" alt="" /></div>
<div class="div2"><?php echo $text_powered_by; ?></div>
<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-8510733-1");
pageTracker._trackPageview();
} catch(err) {}</script>
Thanks!
Andre
Hello!
It is working.
I didn't know that it shows results the next day..
Thanks 4 all!
Andre
It is working.
Code: Select all
<div class="div1"><img src="catalog/view/theme/default/image/payment.png" alt="" /></div>
<div class="div2"><?php echo $text_powered_by; ?></div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-8510733-1";
urchinTracker();
</script>
Thanks 4 all!
Andre
Who is online
Users browsing this forum: No registered users and 77 guests