Note: This solution applies to DocuShare 6.x
Solution:
Note: You must be a Windows Administrator to perform this solution
1. Open Windows Explorer and browse to the Xerox\Docushare\amber\templates\system directory
2. Make a copy of the dslib.vdf file
3. Browse to the Xerox\Docushare\amber\templates\local directory
Note: If you do not have a local directory inside the Xerox\Docushare\amber\templates directory. Then you will need to create one.
4. Paste the a copy of the dslib.vdf file into the Xerox\Docushare\amber\templates\local directory
5. Open the dslib.vdf file that is located in the local directory (the copy) in a text editor such as NotePad
Note: If the entry is added at the end of the file rather than the beginning, then you will not have to wait for the Google code script to load before the page does. You may want to test each way on the site to see what is preferable.
Option 1
Search for the following tag "copyright"> in dslib.vdf file and insert the Google Analytics code at the very end. (See Example below)
Example:
<if cond="${request:directory:is_base_admin_user}">
<insert ref="viewdef:dslibMessages:obtainLicense(brand=${local:marketBrand})" />
<insert ref="local:br"/>
<insert ref="viewdef:dslibMessages:obtainLicense2(mailToVar=${request:get_object(handle='Base-User-2'):email})" />
if>
div>
div>
if>
if>
define>
Option 2
Insert the Google Analytics code in the dslib.vdf file in the "head_include"> tag underneath the Javascript for TinyMCE entry (see example below)
Example:
<if cond="${viewdef:dslib:runwysiwyg}=='Yes'">
<script type="text/javascript" src="${request:config:abs_path}javascript/tiny_mce/tiny_mce.js" />
<script type="text/javascript" src="${request:config:abs_path}javascript/tiny_mce/ds_init.js" />
<script language="javascript" type="text/javascript">
initDS_tinyMCE(false, '<insert ref="request:locale:user_lang"/>');
script>
if>