Jump to content
View in the app

A better way to browse. Learn more.

Portal do Host

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Author

Boa tarde pessoal!

Gostaria de saber se alguém de vocês sabe como inserir o código do Google Analytics no WHMCS, ja tentei de varias formas e sempre da erro.

Alguém pode me ajudar?

Obrigado.


Boa tarde pessoal!

Gostaria de saber se alguém de vocês sabe como inserir o código do Google Analytics no WHMCS, ja tentei de varias formas e sempre da erro.

Alguém pode me ajudar?

Obrigado.



  • Author

Valew pela dica Edvan, vou testar aqui.

Um pouco antes de você responder o tópico eu havia feito o seguinte:

No arquivo: footer.tpl

Inseri o seguinte código:

<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\\\"));

{literal} try {

var pageTracker = _gat._getTracker(\\\"UA-xxxxx-x\\\");

pageTracker._trackPageview();

} catch(err) {} {/literal}

</script>

E não tive problema como das outras vezes.

Posso deixar como ta?


Melhor colocar no header.tpl que irá ler todas as páginas.


Ah, então é por isso que não funcionou comigo!

Muito obrigado pela dica, Edvan! ;D


  • Author

Melhor colocar no header.tpl que irá ler todas as páginas.

Então o código vai ficar assim:

{literal}

<script type=\\\"text/javascript\\\">

var _gaq = _gaq || [];

_gaq.push([\\\'_setAccount\\\', \\\'UA-XXXXX-X\\\']);

_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>

{/literal}

Outra coisa em que lugar do header?

Obrigado.


Então o código vai ficar assim:

Outra coisa em que lugar do header?

Obrigado.

Acima da tag </head>


  • Author

Agora eu acho que deu certo.

Obrigado a todos. o/

Abraços.


Para quem está com este mesmo problema , os Template Whmcs, com final ( Linguagem de programação ) .TPL , é muito difícil fazer com que um código funcione perfeitamente .

Neste caso é bem Simples, basta ir até a opção Configurações > Módulo Addon , e ativar o Addon do Google Analytics , depois disso , use o seu código de conta ( Rastreamento ) , que pode ser encontrado no mesmo código que você para adicionar no Header , neste formato :

UA-35234154-1

Feito isso , salve e o Google Analytics , está ativo e guardando os numero das suas paginas .

Abraços , até Breve


Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Important Information

Do you agree with our terms?

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.