Re: Simple Google Analytics - Support
Hi,
Thanks for a great product.
I have just installed the module on a new site (1.3.9h) and it all seems to be working fine but I thought I would try to use the "custom tracking" feature to tell me whether analytics were being generated from development, test or production shops.
I put in the following code;
Quote:
_gaq.push(['_setCustomVar',
1, // This custom var is set to slot #1. Required parameter.
'shopLevel', // The name acts as a kind of category for the user activity. Required parameter.
'Production', // This value of the custom variable. Required parameter.
3 // Sets the scope to session-level. Optional parameter.
]);
When I view source I can see what looks like correct code but when I look in Google Analytics under Visitors/Custom Variables it tells me there is "no data for this view".
Am I misunderstanding something here (I always find Google's instructions a bit hard to follow).
My new site is www.globalartprints.co.uk
Hopefully I am just doing something silly and obvious.
Thanks
Mark:blush:
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
jill8026
Hi Eric! Hope you are doing great...quick question..I just installed this mod and I can see the code during the checkout process and everything is set properly as far as I can tell in my Analytics account...but it is not capturing the sales?!?! I have read back a few pages and did not find anything that has helped so I figured I would check to see if you can see anything wrong?!?
The site is
http://outdoorplaytoys.com
....and as always...thanks.....
Hi Jill! Long time no talk. :) Good to hear from you.
Have you told Google (within your Google account) that your site is an ecommerce site? You need to do this in order for it to pick up the tracking (which is automatically in place with the mod.)
You set this from within your "Account Profile" (click 'edit').
Let me know if that helps.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
cotsweb
When I view source I can see what looks like correct code but when I look in Google Analytics under Visitors/Custom Variables it tells me there is "no data for this view".
Hi Mark,
Try adding the following code just after that event.
_gaq.push(['_trackEvent',
'Shopping', // category of activity
'Item Removal', // Action
]);
(of course you would alter it to fit your 'tracking needs').
More info on this can be found here:
http://code.google.com/apis/analytic...Variables.html
Let me know if that helps.
Re: Simple Google Analytics - Support
@cotsweb,
Mark, I have another idea here that should work if the last bit of info I sent doesn't.
I made a quick change to the code to place the tracking in a different location (for custom variables).
But again, try what I mention below first and let me know if it works before we go this route.
Let me know. Thanks!
Re: Simple Google Analytics - Support
Thanks Eric,
I have amended my code to the following;
Quote:
_gaq.push(['_setCustomVar',1,'shopLevel','Production',3]);
_gaq.push(['_trackEvent','Shopping','Database Level',]);
I will see what Google Analytics reports tomorrow and let you know the results.
Thanks for your prompt reply.
Mark:smile:
Re: Simple Google Analytics - Support
Help!
I have installed this fine on a test site. But when I installed to live site it went BLANK?
Anyone had this before?
Re: Simple Google Analytics - Support
Just to add more details to above post;
The file causing the problem is;
/includes/templates/[your_template]/common/html_header.php
If i remove the code snippet added just before the </head> the site is visable again.
Can other modules be causing a problem?
That's the only difference between my test site & this live site.
Re: Simple Google Analytics - Support
Hey Eric, it is definitely set up properly in Analytics ...... I am baffled! :smile:
Re: Simple Google Analytics - Support
Hi Eric,
The following sort of works;
Quote:
_gaq.push(['_setCustomVar',1,'shopLevel','Production',3]);
_gaq.push(['_trackEvent','Shopping','Database Level',]);
I can use CustomVar 1 in an advance segment but it shows the values as 'shopLevel' rather than 'Production' which is what I hoped for, still it is usable.
But to save time I have decided just to create an advanced segment on Host Name which gives me a similar result but without messing with custom variables. Nice of you to include it in the module though, I may need it in the future.
Regards
Mark
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
yamadan
Just to add more details to above post;
The file causing the problem is;
/includes/templates/[your_template]/common/html_header.php
If i remove the code snippet added just before the </head> the site is visable again.
Can other modules be causing a problem?
That's the only difference between my test site & this live site.
A blank site means you have a PHP error somewhere. Make certain that the code is exact for that file from site to site.
The best way to do this is to perform a "winmerge" comparison on the two files. This will show you where there are any differences between the two and likely lead you to your problem.
The other thing you can do is to check your error log file (generated in the cache directory) for the root of the problem (on the live site.) As long as you have that turned on (by default in 1.3.9 + but needs to be added in 1.3.8 and under) you'll get the exact spot that the problem is occurring.
Let me know if that helps.