Fork me on GitHub

Rapport de message :*
 

Re: google analytics et code de suivi, où le placer

Titre du sujet : Re: google analytics et code de suivi, où le placer
par chti56 sur 23/05/2012 15:59:08

Bonjour,

J'ai suivi cette conversation car je voudrais aussi insérer un code pour GA.
J'ai regardé le fichier theme.html de mmon thème (morphogenesis_dynamic)... mais je ne vois pas où l'insérer:

voici le code du theme.html:

Citation :
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>"> <head> <!-- Theme name --> <{assign var=theme_name value=$xoTheme->folderName}> <!-- Directory html blocks files or additional html files by include --> <{assign var=theme_name value=$xoTheme->folderName|cat:'/xotpl'}> <!-- Directory html plugins files --> <{assign var=theme_plugin value=$xoTheme->folderName|cat:'/xoplugins'}> <!-- Directory html javascript files --> <{assign var=theme_js value=$xoTheme->folderName|cat:'/js'}> <{php}> /** If a module defines its own canvas template (located themes/themename/modules/dirname/xo_canvas.html), take it; otherwise the default canvas (themes/themename/xotpl/xo_canvas.html) is used. */ if(file_exists(XOOPS_ROOT_PATH."/themes/".$this->_tpl_vars["xoops_theme"]."/modules/".$this->_tpl_vars["xoops_dirname"]."/xo_canvas.html")) { $this->assign("canvas_template", $this->_tpl_vars["xoops_theme"]."/modules/".$this->_tpl_vars["xoops_dirname"]."/xo_canvas.html"); }else{ $this->assign("canvas_template", $this->_tpl_vars["xoops_theme"]."/xotpl/xo_canvas.html"); } /** Defined an extra SMARTY variable $xoops_themeurl, which is identical to $xoops_imageurl, for literal consistence only */ $this->assign("xoops_themeurl", $this->_tpl_vars["xoops_url"]."/themes/".$this->_tpl_vars["xoops_theme"]); /** Defined an extra SMARTY variable $xoops_module_theme */ $this->assign("xoops_module_theme", $this->_tpl_vars["xoops_theme"]."/modules/".$this->_tpl_vars["xoops_dirname"]); /** If a module has its own css (located themes/themename/modules/dirname/style.css), append it to $xoops_module_header */ if(file_exists(XOOPS_ROOT_PATH."/themes/".$this->_tpl_vars["xoops_theme"]."/modules/".$this->_tpl_vars["xoops_dirname"]."/style.css")) { $this->assign("xoops_module_header", $this->_tpl_vars["xoops_module_header"]."\n". "<link rel="stylesheet" type="text/css" media="screen,projection" href="".$this->_tpl_vars["xoops_themeurl"]."/modules/".$this->_tpl_vars["xoops_dirname"]."/style.css"/>\n"); } <{/php}> <{includeq file="$canvas_template"}>



.... est-ce que je peux insérer le code GA en fin ou ???

Merci pour votre aide.

JPC
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

90 Personne(s) en ligne (74 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 90 | Plus ...