Space appear with the code


(lucine) #1

Hello,
I have a small problem : the code give a space in my html pages
(see illustration)
I need no space at the botom of my pages …
I have insert the code just before the tag as it s recommended
How could I fix that ???

http://www.lesmacons.fr/illustration.jpg

Thanks for all the answers,

Guillaume


(michaelc) #2

Hi Guillaume,

Welcome to the Piwik community forums!

Placing the Piwik JS tag just before the tag is recommended but not absolutely neccessary.

I suggest placing your tag somewhere “higher” in the source code just before the closing bottom tag. Befere the end of the tag which generates the red bottom area.

This will also work properly and shouldn’t affect your page layout.


(lucine) #3

Hi,
Thanks for your answer but It doesn’t work !
I have put the javascript code on differents places in my html page :
Before and after the and before /after the tag
Before and after the and before /after the tag
before the tag
before the tag …
And each time the same result : a space appear where I put the code
(I had the same problem with phpmyvisites !!!)
Please help me !
I can’t believe that I could not use this perfect program !!!
I am going to be crazy !

Guillaume


(lucine) #4

Nobody ?
I can’t believe that I am the only one with this problem !
I am certain that an expert could explain me what’s going wrong easily !
Don’t close this post please, I am waiting on the front of my computer !
Guillaume


(branica) #5

[quote=lucine @ Jan 8 2009, 03:50 PM]Nobody ?
I can’t believe that I am the only one with this problem !
I am certain that an expert could explain me what’s going wrong easily !
Don’t close this post please, I am waiting on the front of my computer !
Guillaume[/quote]

I’ll take a look at this tonight to see if you can effectively make the image take up no space. Have you tried the width=0 and height=0 within the image src in the javascript code - not sure if that will work.


(lucine) #6

Hi, thanks to take time to answer, I feel less alone !
I have tried your idea but it doesn’t work to style_emoticons/<#EMO_DIR#>/sad.gif
It’s certain that there is a way to do this but which one ???
I hope that someone could find it …
Have a good night,

Guillaume


(lucine) #7

Nobody ?


(robocoder) #8

it could be an interaction with your css. if you can share a URL, that might help others to help you (vs shooting in the dark).


(lucine) #9

Of course you can see it there.

Guillaume


(timwood) #10

Guillaume,
Try adding the Piwik code without the surrounding tag and without the , and tags. It should end up looking something like this:

<script type="text/javascript">
var pkBaseURL = (("http:" == document.location.protocol) ? "http://yoursite.com/" : "http://yoursite.com/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
piwik_action_name = '';
piwik_idsite = 1;
piwik_url = pkBaseURL + "piwik.php";
piwik_log(piwik_action_name, piwik_idsite, piwik_url);
</script>

[quote=lucine @ Jan 10 2009, 09:14 AM]Of course you can see it there.

Guillaume[/quote]


(Matthieu Aubry) #11

this is caused by the fact that the piwik js code does a document.writeln() ; this issue (white space line) will be fixed with the ticket http://dev.piwik.org/trac/ticket/355 when we instead dynamically create the image + append it to DOM.

stay tuned