Hello Forum
I need to add two javascript scripts to the <head> section of the home page of my dnn 6.1.4 installation.
Script 1 is a Moblie Redirect script the redirects visitors to the mobile version of my site.
<script src="http://static.dudamobile.com/DM_redir..." type="text/javascript"></script>
<script type="text/javascript">DM_redirect("
http://m.mydomain.com");</script>
What this script does is detect whether a user is using a mobile phone and then it redirects the user to the mobile version of the site.
Note: m.mydomain is a placeholder for my domain.
Script 2 is a google analytics script that I need to show on all the pages of my site.
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', XX-XXXXXXXX-X']);
_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>
Note: XX-XXXXXXXX-X is placeholder for my google analytics account. This code should be placed before the end of the </head> section tag according to Google. This code should run on all pages of my site.
Where do I make these changes in DNN 6.1.4. Please give specific instructions if a need to edit any skin files or .ascx files or .aspx any code behind files
Thanks
All feedback will be appreciated