Hey Everyone,
I am attempting to add Googles Analytics code to my website.
Google says, "We generally recommend that you place the Google Analytics tracking code immediately before the closing </body> tag of your pages in order to avoid any issues with page loading delays for visitors with slow connection speeds."
I have the code from Google, I just don't see how to add this just before the close of my body tag.
How do I do this in VSD?
I am attempting to add Googles Analytics code to my website.
Google says, "We generally recommend that you place the Google Analytics tracking code immediately before the closing </body> tag of your pages in order to avoid any issues with page loading delays for visitors with slow connection speeds."
I have the code from Google, I just don't see how to add this just before the close of my body tag.
How do I do this in VSD?
In Visual Site Designer we have a dedicated function for just this sort of thing.
Go to the "Edit menu, click on "Insert Website Analytics Code" and then paste that information in there.
You must be using version 6.0 to use this feature.
Go to the "Edit menu, click on "Insert Website Analytics Code" and then paste that information in there.
You must be using version 6.0 to use this feature.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
Thanks Scott for the reply.
I saw this in a search I did on Coffee Cup but in my version I did not see the "Insert Website Analytics Code" as I have version 5.9.4. That explains why.
I will check into the upgrage version.
Again, thanks for the reply.
VSD Rocks!!!!!!!
I saw this in a search I did on Coffee Cup but in my version I did not see the "Insert Website Analytics Code" as I have version 5.9.4. That explains why.
I will check into the upgrage version.
Again, thanks for the reply.
VSD Rocks!!!!!!!
Hi all,
I've updated our site to use Google analytics, and it appears that the code is present. Here is a snippet from the home page using view source:
"#container { position:relative; margin:0px auto 0 auto; height:768px; width:1024px; text-align:left; padding-left:0px;}
</style>
</head>
<body>
<!-- Website Analytics Code -->
UA-219ZZZ66-1
<!-- End Website Analytics Code -->"
I added this several weeks ago and yet according to Google no stats are being generated.
Does anyone have any ideas what might be wrong here?
I've updated our site to use Google analytics, and it appears that the code is present. Here is a snippet from the home page using view source:
"#container { position:relative; margin:0px auto 0 auto; height:768px; width:1024px; text-align:left; padding-left:0px;}
</style>
</head>
<body>
<!-- Website Analytics Code -->
UA-219ZZZ66-1
<!-- End Website Analytics Code -->"
I added this several weeks ago and yet according to Google no stats are being generated.
Does anyone have any ideas what might be wrong here?
That is not the correct code. You just posted your account number. The correct code is something like this:
<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("#####");
pageTracker._trackPageview();
} catch(err) {}</script>
<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("#####");
pageTracker._trackPageview();
} catch(err) {}</script>
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
Read this article and see if any of it helps.
http://www.google.com/support/analytics/bin/answer.py?hl=en_US&answer=55480&utm_id=ad
http://www.google.com/support/analytics/bin/answer.py?hl=en_US&answer=55480&utm_id=ad
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
It's easy to overlook something you're not looking for.
This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
Hi Scott,
Yes, the code that you posted is more like what Google says you should use.
The code snippet that I attached is what VSD automatically put into each page. I was assuming that it would put in the correct code otherwise why would it be there?
Cheers,
Bobby
PS: I put ZZZ over certain of our letters in the code to keep it private :-)
Yes, the code that you posted is more like what Google says you should use.
The code snippet that I attached is what VSD automatically put into each page. I was assuming that it would put in the correct code otherwise why would it be there?
Cheers,
Bobby
PS: I put ZZZ over certain of our letters in the code to keep it private :-)
That is not the code Google says you "should" use, it is the code you "must" use. 

Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
Ah, I understand now!
So when it says: "Paste your code here" it is not just the Google account number!
Okay, I'll try that then.
Thanks.
So when it says: "Paste your code here" it is not just the Google account number!
Okay, I'll try that then.
Thanks.
I just tried to add my website analytics code from google on VSD. It seems to insert it below the <body> section. But google says to put it before the </head> section. And I'm trying to verify and Google can't find the code! Can anyone look and see if it's in the right spot?
www.violaduo.com
Thanks!
T.
www.violaduo.com
Thanks!
T.
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.