Jump to content

[resolvido] Ferramenta de Heat Map "Click Heat", como inserir Javascript no Prestashop?


Recommended Posts

Ola bom dia.

Antes de contar o caso gostaria que alguem me ajuda-se a entender como eu fecho o poste colocando ele como concluido, preciso saber para fechar os posts que abri anteriormente.

 

Bom, instalei esta ferramenta gratuita de Heat Map em meu site, como ele não é um modulo preciso inserir o codigo de rastreamento manualmente, eu já utilizei o HTMLbox mas nao funcionou, tambem usei o Contentbox e tambem nao funcionou, talvez alguem ja tenha feito e possa me ajudar.

 

CLICKHEAT SITE: http://www.labsmedia.com/clickheat/index.html

 

CÓDIGO A SER INSERIDO:

 

<script type="text/javascript" src="https://www.borealled.com.br/clickheat/js/clickheat.js"></script><noscript><p><a href="http://www.dugwood.com/index.html">Open Source Sofware</a></p></noscript><script type="text/javascript"><!--
clickHeatSite = 'BOREALLED';clickHeatGroup = 'group1';clickHeatServer = 'https://www.borealled.com.br/clickheat/click.php';initClickHeat(); //-->
</script>

 

INFORMAÇÕES:

 

Depois de colocar o código nas suas páginas, não esqueça de testar se o mesmo funciona corretamente, acessando sua pagina com o parametro debugclickheat. Por exemplo para http://www.site.com/index.html digite http://www.site.com/index.html?debugclickheat. Você deverá ver uma mensagem mostrando o status do Clickheat. Se você encontrar algum problema, por favor nos contate

 

LINK PARA DOWNLOAD DO SOFTWARE: https://sourceforge.net/projects/clickheat/files/

Edited by Renato F Lima (see edit history)
Link to comment
Share on other sites

Vc. inseriu aonde ? Em que ficheiro ? adicionou {literal} código {/literal} ao mesmo.

 

Insira o códio no ficheiro /themes/seutema/footer.pl bem embaixo antes de fechar o </body> tag se o código ainda for fazer parte do body.

Além do mais ative no seu back-office o uso de código nao nativo na aba: Preferencias -> geral -> Permitir iframes em campos HTML = SIM

 

Fechar tópicos aqui somente os moderadores tem direito para tal. Se um tópico estiver resolvido, use a opcao "best answer" para mostrar que o problema foi resolvido.

Link to comment
Share on other sites

Ola bom dia.

Tenho pouquissimo conhecimento em html, tentei inserir o código mas acho que estou fazendo errado. O meu footer.tpl está em anexo se puder adicionar para mim agradeço.

 

CÓDIGOS A INSERIR

 

CLICK HATE

 

<script type="text/javascript" src="http://www.borealled.com.br/clickheat/js/clickheat.js"></script><noscript><p><a href="http://www.dugwood.com/index.html">CMS</a></p></noscript><script type="text/javascript"><!--
clickHeatSite = 'borealled';clickHeatGroup = 'group1';clickHeatServer = 'http://www.borealled.com.br/clickheat/click.php';initClickHeat(); //-->
</script>

 

LIVEZILLA

 

<!-- LiveZilla Tracking Code (ALWAYS PLACE IN BODY ELEMENT) -->
<div id="livezilla_tracking" style="display: none;"></div>

<script type="text/javascript">var script = document.createElement("script");script.async=true;script.type="text/javascript";var src = "https://www.borealled.com.br/livezilla/server.php?a=b06ef&rqst=track&output=jcrpt&ovlp=MjI_&ovlc=IzczYmUyOA__&ovlct=I2ZmZmZmZg__&ovlt=SW5pY2lhciBBdGVuZGltZW50bw__&ovlto=QXRlbmRlbnRlIEluZGlzcG9uaXZlbA__&ovlhm=MQ__&eca=MQ__&ecw=Mjg1&ech=OTU_&ecmb=Mjk_&echt=RMO6dmlkYXM,&echst=RmFsZSBhZ29yYSBjb25vc2Nv&ecoht=RMO6dmlkYXM,&ecohst=UG9yIGZhdm9yIGRlaXhlIHVtYSBtZW5zYWdlbQ__&ecfs=I0YwRkZENQ__&ecfe=I0QzRjI5OQ__&echc=IzZFQTMwQw__&ecslw=Mg__&ecsgs=IzY1OUYyQQ__&ecsge=IzY1OUYyQQ__&nse="+Math.random();setTimeout("script.src=src;document.getElementById('livezilla_tracking').appendChild(script)",1);</script>
<noscript><img
src="https://www.borealled.com.br/livezilla/server.php?a=b06ef&rqst=track&output=nojcrpt"
width="0" height="0" style="visibility:hidden;" alt=""></noscript>

<!-- http://www.LiveZilla.net Tracking Code -->

footer.zip

Link to comment
Share on other sites

Qual versao Prestashop ? Tema próprio ?

 

O código do footer.tpl original nao contém todos estas linhas que o seu contém:

{*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2015 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
{if !isset($content_only) || !$content_only}
					</div><!-- #center_column -->
					{if isset($right_column_size) && !empty($right_column_size)}
						<div id="right_column" class="col-xs-12 col-sm-{$right_column_size|intval} column">{$HOOK_RIGHT_COLUMN}</div>
					{/if}
					</div><!-- .row -->
				</div><!-- #columns -->
			</div><!-- .columns-container -->
			{if isset($HOOK_FOOTER)}
				<!-- Footer -->
				<div class="footer-container">
					<footer id="footer"  class="container">
						<div class="row">{$HOOK_FOOTER}</div>
					</footer>
				</div><!-- #footer -->
			{/if}
		</div><!-- #page -->
{/if}
{include file="$tpl_dir./global.tpl"}
	</body>
</html>

Vc. deverá inserir o código antes do

 

</body> fica entao assim:

{*
* 2007-2015 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author PrestaShop SA <[email protected]>
*  @copyright  2007-2015 PrestaShop SA
*  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*}
{if !isset($content_only) || !$content_only}
					</div><!-- #center_column -->
					{if isset($right_column_size) && !empty($right_column_size)}
						<div id="right_column" class="col-xs-12 col-sm-{$right_column_size|intval} column">{$HOOK_RIGHT_COLUMN}</div>
					{/if}
					</div><!-- .row -->
				</div><!-- #columns -->
			</div><!-- .columns-container -->
			{if isset($HOOK_FOOTER)}
				<!-- Footer -->
				<div class="footer-container">
					<footer id="footer"  class="container">
						<div class="row">{$HOOK_FOOTER}</div>
					</footer>
				</div><!-- #footer -->
			{/if}
		</div><!-- #page -->
{/if}
{include file="$tpl_dir./global.tpl"}

{literal}
<script type="text/javascript" src="http://www.borealled...js/clickheat.js"></script><noscript><p><a href="http://www.dugwood.com/index.html">CMS</a></p></noscript><script type="text/javascript"><!--
clickHeatSite = 'borealled';clickHeatGroup = 'group1';clickHeatServer = 'http://www.borealled...kheat/click.php';initClickHeat(); //-->
</script>
{/literal}


	</body>
</html>

Se estiver usando um tema próprio, entao por favor consulte o desenvolvedor do seu tema. Pode ser que a insercao de código somente pode ser feito através de overrides.

Edited by selectshop.at (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...