<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><br>
</p>
<p><br>
</p>
<p>Hi, </p>
<p><br>
</p>
<p>There was a request on how to enable google analytics in ASpace. I was going to write a plugin for this, but it's actually so simple, it might be easiest just to use the local plugin instead of having a dedicated plugin. </p>
<p><br>
</p>
<p>Steps: </p>
<p>1) Enroll in Google Analytics, register your site ( you don't need to include the port number in the URL ) , and get your tracking code ( it'll be a block of javascript )</p>
<p>2) Ensure that the local plugin is enabled in your config/config.rb ( it is by default )</p>
<p>3) add your tracking code to a file called plugins/local/public/views/layout_head.html.erb </p>
<p>4) Restart ASpace</p>
<p><br>
</p>
<p>Once the server restarts, you should start seeing traffic come in on the real time app window.
<br>
</p>
<p><br>
</p>
<p>best, Chris. <br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div class="BodyFragment"><font size="2">
<div class="PlainText">Chris Fitzpatrick | <font size="2">Developer, ArchivesSpace</font><br>
Skype: chrisfitzpat | Phone: 918.236.6048<br>
http://archivesspace.org/<br>
</div>
</font></div>
</div>
</div>
</div>
</body>
</html>