Paste Google Analytics so it can't be seen

  • 1
  • Question
  • Updated 9 years ago
  • Answered
When putting the Google Analytics code on the bottom of the page it shows on the webpage.
How do you paste the code without it being seen?
Photo of rjk1@live.ca

rjk1@live.ca

  • 156 Posts
  • 9 Reply Likes
  • confused

Posted 9 years ago

  • 1
Photo of Kershnee

Kershnee

  • 2087 Posts
  • 152 Reply Likes
Hi Ron,

You need to paste the code into an HTML widget. You can add HTML by dragging and dropping an HTML widget from the sidebar on the right onto your page (the icon for this is a blue sphere).
An HTML editor will open up that will allow you to write or paste in your code. When you are done, click "ok" and you will see the way that the HTML displays on your page

Here are the steps again for adding Google Analytics:

1. Go to Google Analytics - http://www.google.com/analytics/ and sign up for a free account.
2. Type in the URL of your site.
3. Copy the verification code provided by Google.
4. Go to SynthaSite and drag and drop an HTML widget at the bottom of each page you want to track. You could place the code anywhere on your page, but always adding it in the same spot helps you keep track of where you have placed it.
5. Paste the code from Google into the dialogue box of the HTML widget on each page.
6. Republish your site.

If the code is installed correctly you will not see anything on your page, but Google will use this invisible tracking code to gather data on your site. Once you update your site, it be verified and you can log in to your Google Analytics account to find out all the information you want to know about the people who have visited your site. Please be aware that it takes 24 hours for Google Analytics to collect the first lot of data about your site.

Please Note - Google Analytics sometimes gives a Javascript error on drop. This is a known issue, but will not interfere with Google's ability to verify your site. If you get this error, simply navigate to another page on your site and all should be fine).