/    Sign up×
Community /Pin to ProfileBookmark

google analytics tracking code problem

hi everybody,
i inserted the code that was given to me by google analytics into my page but every couple days my index page goes down to the bottom of the screen although my default align is top and it goes back to top when i upload it again without making any changes to code

and here is my tracking code:
<script type=”text/javascript”>
var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
document.write(unescape(“&#37;3Cscript src='” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
</script>
<script type=”text/javascript”>
try {
var pageTracker = _gat._getTracker(“UA-9682255-1”);
pageTracker._trackPageview();
} catch(err) {}</script>

please can anybody explain why is this happening,
thanks

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@rihamfathyauthorJul 29.2009 — [B][SIZE="3"]hi everyone,

yesterday i posted this question:

hi everybody,

i inserted the code that was given to me by google analytics into my page but every couple days my index page goes down to the bottom of the screen although my default align is top and it goes back to top when i upload it again without making any changes to code[/SIZE]
[/B]


[SIZE="3"][B]

and here is my tracking code:[/B]
[/SIZE]


<script type="text/javascript">

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");

document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

</script>

<script type="text/javascript">

try {

var pageTracker = _gat._getTracker("UA-9682255-1");

pageTracker._trackPageview();

} catch(err) {}</script>



please can anybody explain why is this happening,

thanks[/QUOTE]


[B][SIZE="3"]and i figured out later that this problem not because of the tracking code because it happened also to 2 websites that doesn't have this code so now i don't know what is the problem and please find the attachment to see ascreen shoot of how my website look like after and before problem[/SIZE][/B]

[SIZE="5"][B]and in my css i set the margins to 0px;[/B][/SIZE]

[upl-file uuid=b616d27b-8d7e-4401-9533-774eabcc5a53 size=53kB]1.jpg[/upl-file]

[upl-file uuid=15449e24-de61-4e09-8dd5-bf962f8ab771 size=53kB]2.jpg[/upl-file]
×

Success!

Help @rihamfathy spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...