I want to be able to move the google analytics code into that database.
Originally I would manually do this inside of the template:
<script type="text/javascript"><!--
{literal}
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-19807844-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
{/literal}
--></script>
How do I do something like below, that allows the user to enter into the database their own analytics
<script type="text/javascript"><!--
{literal}
{$portal.google_analytics}
{/literal}
--></script>
or if you just want them to enter their Account:
or