Google Analytics Bugs Out DataAssist
Im using DataAssist to create a field to hold the Google Analytics code the problem is when I insert or update the form. The code goes crazy and inserts only part of the code. For instance the following code when inserted.....
-------------------------------------------------------------------------------------
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-AccountNumber']);
_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);
})();
</script>
-------------------------------------------------------------------------------------
Only places this part in the database
-------------------------------------------------------------------------------------
<script type="text/javascript">
var _gaq = _gaq
-------------------------------------------------------------------------------------
Then ignores all the rest or puts part of it in a different field.
I'm using PHP 5.2 mysql with the field set as a text field.
I own Powerstore 4 and see that it's possible to store the data in a database so any idea what gives?