NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Johan van Zyl on June 10, 2013, 09:42:53 PM
-
See attachments
It would seem as if the browsers do not "see" the contents of my two js scripts.
When I scracth around in FireBug I do find the contents of all.js but nothing related to GoStas.js or googleanalytics.js?
From GoStats HelpDesk
"Marius, Jun 10 10:17 (COT):
Johan,
The code provided by us it's fine, but it's not copy/pasted as it is within your website's pages code.
Within your site index page, there is only one line added:
"<script src="/scripts/GoStats.js" type="text/javascript"></script>"
You may want to remove that line and add the code fully.
Let me know if you are having any further questions.
Kind regards,
Marius"
[attachment deleted by admin]
-
is your page online?
I see you're referred to it as GoStas.js, GoStats.js and GoStatxs.js - you might want to make that more consistent.
-
There is only one
GoStats.js<g>
And there is also googleanalytics.js
Neither seem to work!
Always online - supposed to be
http://www.medxinfo.co.za
-
Where did these js files come from?
The code in GoStats.Js looks very wrong. (If it's yours that's ok, then you can easily fix it, if not then probably some other advice would be more helpful.)
This is the _minimum_ I'd do to the GoStats.Js file;
it's currently formatted as HTML - meaning you have the code inside a <script> tag. But this is a JS file, not an HTML file,
a) so you can completely remove the <noscript> part,
b) and you can change
<script type="text/javascript">_gos='c5.gostats.com';_goa=1057310; _got=3;_goi=18;_gol='web stats browser';_GoStatsRun();</script>
to just
_gos='c5.gostats.com';_goa=1057310; _got=3;_goi=18;_gol='web stats browser';_GoStatsRun();
c) the
<br/><a target="_blank" href="http://c5.gostats.com/click/1057310/web-counter/stats-home"
style="font: 9px sans-serif" title="web stats browser">web stats browser</a>
part belongs in your page, presumably as a menu item or button or something, not in the script file.
d) http://gostats.com/js/counter.js needs to be added to your scripts list in the webserver, it shouldn't be embedded here.