chitownclone
Programmer
I manage 8 different websites. Some are tagged with Google Analytics, some Omniture, some WebTrends, some DoubleClick Dart Spotlight, and some have multiple tags. I would like to centralize the configuration and management of all tags on a central server.
Thus, when a vistior lands on one of my sites, the client-side will request a JavaScript file (or engage a php script) from the central server....which then request the appropriate files sitting on Google (urchin.js), Omniture (omniture.js), etc servers.
Questions:
1) Will the analytics applications still be able to track the visitor’s IP address and other server-side data (referral url, browser data, etc) if I am storing their .js files on a Central server (C.S.)? What about the first and third party cookies set by the applications? I know all the work is done client-side, so I don't think any server-side data from the C.S. will corrupted the data or cause a disconnect with setting/getting the cookies.
2) Would there be any of the same problems with server-side data and setting/getting cookies if I used a single php script to manage all the requests via a single web-site id?
3) Lastly, in terms of site performance....would using a php script create a noticeable degradation in load time compared to calling a specific js file on the same server?
Managed Via Single PHP
Managed Via Local Site Related JS File
Thanks for the help!!!
Thus, when a vistior lands on one of my sites, the client-side will request a JavaScript file (or engage a php script) from the central server....which then request the appropriate files sitting on Google (urchin.js), Omniture (omniture.js), etc servers.
Questions:
1) Will the analytics applications still be able to track the visitor’s IP address and other server-side data (referral url, browser data, etc) if I am storing their .js files on a Central server (C.S.)? What about the first and third party cookies set by the applications? I know all the work is done client-side, so I don't think any server-side data from the C.S. will corrupted the data or cause a disconnect with setting/getting the cookies.
2) Would there be any of the same problems with server-side data and setting/getting cookies if I used a single php script to manage all the requests via a single web-site id?
3) Lastly, in terms of site performance....would using a php script create a noticeable degradation in load time compared to calling a specific js file on the same server?
Managed Via Single PHP
Code:
<script type="text/javascript" src="[URL unfurl="true"]http://www.central_server.com/analytics.php?site_id=3"></script>[/URL]
Managed Via Local Site Related JS File
Code:
<html>
<BODY>
<A HREF="[URL unfurl="true"]http://www.google.com"[/URL] onClick="javascript:EventTracker('/offsite/google.com')";>Go to Google</A>
<!-- Consilidated Analytics Tags Start -->
<script type="text/javascript" src="[URL unfurl="true"]http://www.central_server.com/my_local_site_name.js"></script>[/URL]
<script type="text/javascript">
PageloadTracker();
</script>
<!-- Consilidated Analytics Tags Start End -->
</body>
</html>
Thanks for the help!!!