Codigo : google analytcs no index.php

  • riccelly
  • Avatar de riccelly Autor do Tópico
  • Offline
  • JCB! Geek
  • JCB! Geek
Mais
13 anos 3 meses atrás #73860 por riccelly
riccelly created the topic: Codigo : google analytcs no index.php
pessoa, kero por o codigo da analytcs , mas meu index.php nao tem as tags head.

em qual arquivo posso por ?

// no direct access
defined('_JEXEC') or die('Restricted access');
include_once(dirname(__FILE__).DS.'libs'.DS.'browser.php');
include_once(dirname(__FILE__).DS.'libs'.DS.'zt_tools.php');
include_once(dirname(__FILE__).DS.'zt_menus'.DS.'zt.common.php');
include_once(dirname(__FILE__).DS.'libs'.DS.'zt_vars.php');

unset($this->_scripts[$this->baseurl.'/media/system/js/caption.js']);

if($myBrowser && $ztTools->getParam('zt_mobile')) {
include_once(dirname(__FILE__).DS.'libs'.DS.'layouts'.DS.'mobile.php');
} else {
include_once(dirname(__FILE__).DS.'libs'.DS.'layouts'.DS.'default.php');
}
?>

esse é a index.php.....

Sites Dinâmicos
[url:300s9oc2]http://www.lifeagenciaweb.com[/url:300s9oc2]

[b:300s9oc2]"Aprenda, mas compartilhe!
Vamos crescer juntos!"[/b:300s9oc2]

Please Entrar ou Registrar to join the conversation.


Mais
13 anos 3 meses atrás #73862 por Uriel
Uriel replied the topic: Re: Codigo : google analytcs no index.php
Tente fazer assim
>>
<script type="text/javascript">var _gaq=_gaq||&#91;&#93;;_gaq.push(&#91;'_setAccount',SUA ID aqui'&#93;);_gaq.push(&#91;'_trackPageview'&#93;);(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')&#91;0&#93;;s.parentNode.insertBefore(ga,s)})();</script>

Mas eu uso plugins!! é muito mais comodo!!
Vc só precisa colocar sua ID

ID = UA-31130630-1

abraço

Please Entrar ou Registrar to join the conversation.

  • riccelly
  • Avatar de riccelly Autor do Tópico
  • Offline
  • JCB! Geek
  • JCB! Geek
Mais
13 anos 3 meses atrás #73864 por riccelly
riccelly replied the topic: Re: Codigo : google analytcs no index.php
em q linha ponho esse script?

Sites Dinâmicos
[url:300s9oc2]http://www.lifeagenciaweb.com[/url:300s9oc2]

[b:300s9oc2]"Aprenda, mas compartilhe!
Vamos crescer juntos!"[/b:300s9oc2]

Please Entrar ou Registrar to join the conversation.

Mais
13 anos 3 meses atrás #73865 por Uriel
Uriel replied the topic: Re: Codigo : google analytcs no index.php
Se é melhor e mais fácil usar um plugin por que colocar o código??


Agora eu vi que é joomla 1.5

Não fica no index.php

fica no index.html

Lá tem as tags head

abraço

Please Entrar ou Registrar to join the conversation.