Google Analytics Code Location

General ShopSite user discussion

Google Analytics Code Location

Postby Kingslayer » Thu Aug 26, 2010 12:14 pm

I went through the wizard inside the ShopSite software to install Google Analytics. I published the site after pasting the GA code into the section which asked for it. I waited 24 hours to check my stats through GA but GA says it doesn't see the code. It says the code should be installed before the /head switch in the website code. If I view the source ShopSite clearly put the GA code AFTER the /head swtich.

Any idea why?

Here is an excerpt of my sites source:

</script>
</head>

<body><script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '18181118-1']);
_gaq.push(['_setDomainName', 'nope']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
</script>
<script type="text/javascript">
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>
<script type="text/javascript">
function __utmLinker(param) {
return(_gaq.push(['_link',param]))
}
Kingslayer
 
Posts: 26
Joined: Wed May 05, 2010 6:02 am
Location: Port Charlotte, Florida

Re: Google Analytics Code Location

Postby ShopSite Lauren » Thu Aug 26, 2010 2:04 pm

What is the URL to your website?

When i go through Google Analytics setup for my website in my GA account, it says to paste the code within the body section of the page, not in the head section.
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

Re: Google Analytics Code Location

Postby Kingslayer » Fri Aug 27, 2010 8:03 am

http://www.fishingfranks.com/store

If you go to your GA main page where it shows your profiles, at the end of each profile you'll see Edit and Delete. Click on Edit. That should take you to your profile settings. In the upper right corner of the table I see "Tracking not Installed then a link to Check Status. Clicking that takes me to a place that asks me what I'm tracking and shows the code to paste into the code of each page you want to track. There it says: Copy the following code, then paste it onto every page you want to track immediately before the closing </head> tag.
Kingslayer
 
Posts: 26
Joined: Wed May 05, 2010 6:02 am
Location: Port Charlotte, Florida

Re: Google Analytics Code Location

Postby Kingslayer » Mon Sep 20, 2010 7:37 am

Any ideas on this one?

Strange thing is I checked my Analytics and it shows that it's reading now. But it's obviously not reading correctly. It shows 7 visits on Sept 14 and that's it. Which isn't right according to my stats provided by Lexiconn. I've even had orders since Sept 14th so people have definately been on my site.
Kingslayer
 
Posts: 26
Joined: Wed May 05, 2010 6:02 am
Location: Port Charlotte, Florida

Re: Google Analytics Code Location

Postby Jim » Mon Sep 20, 2010 1:19 pm

If you are hosted at Lexiconn, they can probably help you resolve this issue. They are excellent in there knowledge and support of ShopSite.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Google Analytics Code Location

Postby Kingslayer » Tue Sep 21, 2010 7:37 am

Thanks, I'll give them a call.
Kingslayer
 
Posts: 26
Joined: Wed May 05, 2010 6:02 am
Location: Port Charlotte, Florida


Return to User Forum

Who is online

Users browsing this forum: No registered users and 66 guests