← SMF

SMF e Google Analytics

Lida 2132 vezes

Offline

bibi 
Membro
Mensagens 329 Gostos 0
Troféus totais: 27
Trófeus: (Ver todos)
Avatar Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1


Inseri o código Analytics antes do </body> como sempre, no ficheiro php index_template.php da theme que estou a usar.

Resultado = erro no template

O que se passa? Há algum truque?
Ou sou eu que sou um maçarico no smf? :)
Offline

nram 
Membro
Mensagens 777 Gostos 0
Feedback +1

Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

antes do código metes

Código: [Seleccione]
'; ?>
e depois do código metes
Código: [Seleccione]
<?php echo '  

simplesmente isto porque o código está dentro do echo.

PS: Não dá para ver mas depois do echo tem uma pelica... e entre o echo e a pelica leva um espaço. Não sei porque é que não aparece a pelica. :S
Offline

bibi 
Membro
Mensagens 329 Gostos 0
Troféus totais: 27
Trófeus: (Ver todos)
Avatar Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Obrigado nram.

Aparentemente está resolvido. Agora é esperar se está efectivamente a funcionar o Analytics.

 :obrigado:

Offline

Nuno 
Administrador
Mensagens 7780 Gostos 216
Feedback +2

Troféus totais: 42
Trófeus: (Ver todos)
100 Poll Votes Level 7 Search Mobile User Level 6 Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes

Offline

nram 
Membro
Mensagens 777 Gostos 0
Feedback +1

Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

http://analytixspecifix.blogspot.com/2008/12/simple-machines-forum-software-and_08.html

Dá bastante mais trabalho, mas se calhar quem pensa em mudar de template muitas vezes torna-se mais fácil.