WTF???? 😵😵😵
Amigo mio te recominedo eches un ojo
https://devdocs.prestashop.com/
Prueba esto a ver si te funciona
getresponse2.php
class getresponse2 extends Module { public function __construct() { $this->name = 'getresponse2'; $this->tab = 'others'; $this->version = '1.0.0'; $this->author = 'Álvaro Portela'; $this->need_instance = 0; $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('GetResponse2'); $this->description = $this->l('inserta código para GetResponse Ecommerce'); $this->confirmUninstall = $this->l('¿Quieres desinstalar el módulo?'); } public function install() { if (parent::install() == false OR !$this->registerHook('header')) return false; return true; } public function hookHeader($params) { if ($this->context->customer->email) { $this->context->smarty->assign('email', $this->context->customer->email); return $this->display(__FILE__, 'head.tpl'); } } }
head.tpl
<script type='text/javascript'>gaSetUserId('{$email}');</script>
Lo que no me queda claro es d dnd pillas la funcion gaSetuserId ya q en el modulo no haces referecnia a ningun js o recurso externo.
Suerte