Google Analytics Tracking Code

40 views
Skip to first unread message

visio007

unread,
Dec 25, 2009, 11:24:44 PM12/25/09
to Glossword Users
Hi

Can anyone tell me how to install Google Analytics Tracking Code to
Glosswords? (I mean where to paste the code)

elmoch

unread,
Dec 28, 2009, 2:43:17 PM12/28/09
to Glossword Users
Hi visio007,

In GW 1.8.11 do the following...

1) Copy your Analytics code to a file called 'google_analytics.php'
../templates/common/

2) Declare a custom variable in the file 'custom_vars.php'

Below
/* ----------------------------------------------------- */
/* Load custom functions */
/* ----------------------------------------------------- */
/*

add this line: $oTpl->addVal('my:block:google_analytics', $oFunc-
>file_exe_contents($sys['path_tpl'].'/common/
google_analytics.php') );

3) Edit your visual theme

Visual themes -> Browse -> (Theme name) Dictionary -> tpl_footer:
Edit the code:
Right above </body></html> add this code {%my:block:google_analytics%}

I hope this helps. It works for me.

Reply all
Reply to author
Forward
0 new messages