need2fart
09-30-2010, 11:04 PM
Was it global.php?
I'm trying to add Google analytics to my site and I don't remember the file that is used in all vB pages.
Was is global.php?
I want to do require_once('googleAnalytics.php');
Thanks.
--------------- Added 1285893243 at 1285893243 ---------------
Okay it is global.php. However when I do include my file, <script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-18840951-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);
})();
</script>
It keeps saying my headers were already sent in VB. What do I do to make it work?
I'm trying to add Google analytics to my site and I don't remember the file that is used in all vB pages.
Was is global.php?
I want to do require_once('googleAnalytics.php');
Thanks.
--------------- Added 1285893243 at 1285893243 ---------------
Okay it is global.php. However when I do include my file, <script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-18840951-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);
})();
</script>
It keeps saying my headers were already sent in VB. What do I do to make it work?