Favourite Host

FastComet

Install Service

Premium Support

Forums

Forum breadcrumbs - You are here:ForumForum: GeneralGoogle Analytics
Login or register to post.

Google Analytics

Hi,

Can anyone please show me exactly where to paste my Google analytics code for this site?

Also, if there are any other recommendations for fairly basic/affordable analytics I'd love to hear them.

Thanks,

Nick

Hello,

You can add it to your html/header.php under the <head> tag and the same in users/header.php. At least it seems that's where they want to put it these days from what I can see.

Depending on your host you might be able to install some free software from your control panel. If you're using cPanel you probably can install Piwik.

Ryan

Thanks, it kept breaking the animation in my header, it looks like analytics is working if I put it in the footer. Hopefully the data sent over isn't inaccurate. We'll see how things go.

Can I ask another question here or should I make a new thread? On my site, on the grid, there is a 1 pixel sliver along the entire right side and bottom. It's like the background image isn't laid perfectly onto the grid. I tried to expand the size of my background by 10 pixels in each dimension (1010 x 1010) yet I still have that little transparent/white sliver of unused pixels. Any ideas on how to fix this?

Regards,

Nick

Hello,

I'm very sorry for the delayed response! I only recently migrated to this forum software and I forgot subscribe to the topic and forgot to set my account to subscribe to get all notifications. I also got busy with other things and only just noticed that you had responded to this topic again and I also noticed your latest post from your previous forum topic that I didn't respond to yet which I may as well reply to after this too. I've now set my account to subscribe to all new posts and topics on the subscriptions tab at the top of the forums so hopefully I get emails whenever you respond now and that won't happen again. If I still don't respond for some strange reason then feel free to send me a message on Discord ryvix#1807 or use the Contact page and I should see those.

If you're getting errors putting the Google Analytics code below your <head> tag then you might not be putting it in the correct location there or maybe there's something else weird going on, I would have to see the errors to know for sure what. But if it works for you where you put it then hopefully it will do the trick.

The border you mentioned is possibly due to some CSS in the main.css file. Did I set this site up for you? Because I don't think it's actually there by default so it might not be there and might be in a different file or maybe you are referring to something else entirely than what I'm thinking. If you haven't figured it out yet feel free to send me a link and I'll check it out. Originally the grid images for the blocks only have grid lines on the top and left since they are only 1 pixel they can't be on all edges or the grid lines would be too thick when the blocks are displayed next to each other. Therefore after the complete grid image is processed it has no grid lines on the bottom and right sides so instead of modifying the dimensions of the image by 1 pixel to add them they can be added through CSS which you could easily remove by editing that file or whichever file they are in. If you wanted to try figuring it out yourself you could use the inspector in your browser.

Ryan