idoityourself Posted September 13, 2011 Share Posted September 13, 2011 Hi Google Analytics in not showing any data for my shop, and Ive had sales so there have been people on the site. It came already installed but it does seem to be in the header and not the footer where I think it should be. I followed these steps http://www.prestashop.com/forums/topic/5309-google-analytics-in-footer-of-pages/ But when I went back into the BO the moduales page wouldn't load so I put it back how it was. Any ideas? thanks Link to comment Share on other sites More sharing options...
phrasespot Posted September 15, 2011 Share Posted September 15, 2011 I followed these steps http://www.prestasho...-of-pages//url] But when I went back into the BO the moduales page wouldn't load Considering that post is a few years old, not surprising. What version of PS you have installed? The GA module in 1.4 works fine. Also see GA documentation, it can be in either, the header or bottom of the page. How long it has been since you installed the GA script? It may take a few days to see anything in GA console. Link to comment Share on other sites More sharing options...
idoityourself Posted September 21, 2011 Author Share Posted September 21, 2011 Thanks Ive got version 1.3 the script has been on here for weeks but still no data. It works fine for the rest of my website just not showing any shop data. Link to comment Share on other sites More sharing options...
idoityourself Posted September 26, 2011 Author Share Posted September 26, 2011 Anyone have a suggestion? thanks Link to comment Share on other sites More sharing options...
phrasespot Posted September 26, 2011 Share Posted September 26, 2011 When you look at the source code of the shop (You may need to turn off performance tweaks first) do you see the GA script? Is it setup correctly? Do you see any shop URL being tracked in GA console top hits section? Link to comment Share on other sites More sharing options...
idoityourself Posted September 27, 2011 Author Share Posted September 27, 2011 Thanks, there is some script before </head> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-1935869-9 ']); _gaq.push(['_trackPageview', '']); _gaq.push(['_trackPageLoadTime']); (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> Link to comment Share on other sites More sharing options...
phrasespot Posted September 27, 2011 Share Posted September 27, 2011 The script is correct, so GA tracking is active. You did not answer my other question. Do you see any shop URL being tracked in GA console top hits section? Do you have access to Google webmasters console for your domain? If you do check the domain there to make sure Google does not find a problem with it during crawl. Also, if your shop is online, please post the address so I can look at it from client side. Maybe there is a problem loading the script etc. Link to comment Share on other sites More sharing options...
idoityourself Posted October 3, 2011 Author Share Posted October 3, 2011 Sorry probably didnt make that clear above, the site has been running for years and I can see all the pages for the main site getting traffic except for the new shop urls there is nothing at all. Im even now redirecting some old pages to the new shop ones and I can see the old pages with 1000s of hits but nothing for the new shop. Ive just set up Google Webmaster so I supposed that will take a day or two to work. This is the url for the shop idoityourself.com.au/shop thanks Link to comment Share on other sites More sharing options...
phrasespot Posted October 4, 2011 Share Posted October 4, 2011 Both the GA script and the GA image are loading successfully from the shop URLs. So there is no reason why it would not show in GA console. Here is a help page from Google, check if any of these is relevant, following are not, check the rest. Incorrect tracking code Using an Outdated Version of ga.js Interfering Scripts Also, how long did you have the /shop directory/shop subdomain? There are no Google search results to shop.idoityourself.com.au or idoityourself.com.au/shop or www.idoityourself.com.au/shop You have three domains as far as Google is concerned, shop.idoityourself.com.au blog.idoityourself.com.au www.idoityourself.com.au and idoityourself.com.au Maybe the analytics for the shop is recorded under another domain than you are checking or maybe it is not crawled /indexed yet. Are there any links from the domain root (idoityourself.com.au) with target /shop/ directory? I cannot find any. Are there any links from your blog domain (blog.idoityourself.com.au) with target /shop/ directory? I cannot find any. ---- Following URLs lead to exactly same content http://idoityourself.com.au/shop/ = http://shop.idoityourself.com.au/ Following two both answer with no redirect http://idoityourself.com.au/ = http://www.idoityourself.com.au/ Following answer with a redirect to upper level domain http://www.idoityourself.com.au/shop ==> http://idoityourself.com.au/shop Lots of links with target http://www.idoityourself.com.au/ Decide on an URL structure, normalize your URLs, and stick to it, including in link targets. ---- Im even now redirecting some old pages to the new shop ones I cannot find any redirects (except a www to non-www I mentioned above). Also, redirecting is OK but sometimes it is better to add ample links to the new URLs and send "410 Gone" response for the old URLs so they are removed from circulation. ----- Add robots file to the root of your domains The centre-piece at /shop/ links to maker of the module Link to comment Share on other sites More sharing options...
idoityourself Posted October 6, 2011 Author Share Posted October 6, 2011 Lets see Ive had the shop up for about 2months, there are some search results on google for it. The blog is hosted by blogger and just made to look like part of the site so that has its own analytics profile. Ive tried giving the shop its own one now, been there 24hrs nothing yet and analytics is showing the error symbol under status. Maybe it needs a bit more time? Ive also added a link from the home page now. (trying to get the stock loaded before I point to it too much) Set up google webmaster and I can see some of the top pages are the shop pages. Confused Link to comment Share on other sites More sharing options...
phrasespot Posted October 6, 2011 Share Posted October 6, 2011 Maybe it needs a bit more time? That is my guess. If crawlers can access your site and GA script works fine, I cannot see any reason it should not work. Link to comment Share on other sites More sharing options...
idoityourself Posted October 12, 2011 Author Share Posted October 12, 2011 Sorted it ! When I cut and paste the UA number into the BO and it put a space on the end! All working now thanks for your help Link to comment Share on other sites More sharing options...
phrasespot Posted October 12, 2011 Share Posted October 12, 2011 Great news....I should have caught it (sigh), the space is in the snippet you posted above, forest for the trees.... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now