Page 148 of 217 FirstFirst ... 4898138146147148149150158198 ... LastLast
Results 1,471 to 1,480 of 2161
  1. #1471
    Join Date
    Jun 2008
    Posts
    71
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    I don't have the page /includes/templates/[your_template]/common/tpl_main_page.php, what shall i do? Thanks!

  2. #1472
    Join Date
    Jun 2008
    Posts
    71
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by melena View Post
    I don't have the page /includes/templates/[your_template]/common/tpl_main_page.php, what shall i do? Thanks!
    yes I have done all the templ
    ates override as above and it is still not working!

  3. #1473
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by melena View Post
    yes I have done all the templ
    ates override as above and it is still not working!
    Look a few posts below and you'll find the answer. You need to copy the file tpl_main_page.php from your template_default directory into your custom override template directory and then make adjustments to that. That is how you activate the template overrides.

    If you have done this already, make sure you completed step 3 of the install.

    If you think you have don all of this, view your site in a browser. While looking at it perform a 'view source'. Look for the Google Analytics tracking code on the page. Make sure it has your proper tracking id showing (if not you need to add that in the Zen Cart admin.)

    If all that is in place and it still is not working you need to make sure you tell Google to "check the tracking" on the page so they know you have it in place and can start recording data for you.

    Let me know if this helps.

    If you provide a URL to the site that would help as well.

    Thanks!
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  4. #1474
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Hi,

    I have been getting quite a few hits and a few sales from google image search. I thought it would be great if I was able track these image searches and see what keywords were being used etc. so I googled it and found this. Would it be possible to implement something like that using this mods "Google Custom Code - After" custom code entry feature?

    Thanks

  5. #1475
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Simple Google Analytics - Support

    @gafettape,

    Yes you can track it with my module by simply adding a few lines of custom code. Version 1.2.4 of my Simple Google Analytics module will let you do this with either the ga,js version or the Asynchronous version of the tracking script. 1.2.3 will only let you do it with the Asynchronous version.

    I wrote an article here on how it is done since I noticed many others were also looking for the answer to this. You can read that here: Image Search Keyword Tracking with Google Analytics.

    In short, to add the ability of keyword tracking via Google Image Search you first need to determine the type of tracking code you are using.

    Once you have determined that, all you have to do is go to the configuration section of my module (Admin > Configuration > Google Analytics Configuration) and in the section that says "Google Custom Code - After" add one of the following snippets (based on the type of tracking you are using):

    ga.js users add the following:

    PHP Code:
    var ref document.referrer;
    if (
    ref.search(/images.google/) != -&& ref.search(/prev/) != -1) {
    var 
    regex = new RegExp("images.google.([^/]+).*&prev=([^&]+)");
    var 
    match regex.exec(ref);
    pageTracker._clearOrganic();
    pageTracker._addOrganic("images.google."match[1],"q");
    pageTracker._setReferrerOverride("http://images.google." match[1] + unescape(match[2]));

    Asychronous users add the following:

    PHP Code:
    var ref document.referrer;
    if (
    ref.search(/images.google/) != -&& ref.search(/prev/) != -1) {
    var 
    regex = new RegExp("images.google.([^\/]+).*&prev=([^&]+)");
    var 
    match regex.exec(ref);
    _gaq.push(['_clearOrganic']);
    _gaq.push(['_addOrganic','images.google.'+match[1],'q']);
    _gaq.push(['_setReferrerOverride''http://images.google.'+match[1]+unescape(match[2])]);

    Save that and now enable the custom tracking by setting the option that says "Add Custom Tracking After Main Analytics Code?" to "Enable".

    Refresh your page and view the source to make sure the new tracking is in place.

    Let me know how this works for you.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  6. #1476
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Thanks for your detailed response Eric, I'll give it a go sometime today and let you know how I get on.

    One question: do I need to add or adjust anything in my Google Analytics account?

    Thanks

  7. #1477
    Join Date
    Dec 2006
    Location
    Augusta, GA
    Posts
    72
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Still fighting Google... I'm convinced my problem is on the Google side. My client has a user number with Google that's tied to AdSense. Because I'm the one who looks after his site, I created the Analytics account with my user number. Apparently, this makes the Google unhappy.

    The next thing is for me to try is to delete my profile for his site and use his. I don't know if anyone else has experienced a similar situation; but, I'll post back if it works.

  8. #1478
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by gaffettape View Post
    Thanks for your detailed response Eric, I'll give it a go sometime today and let you know how I get on.

    One question: do I need to add or adjust anything in my Google Analytics account?

    Thanks
    Not to track what you are looking to do.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  9. #1479
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by hermes369 View Post
    Still fighting Google... I'm convinced my problem is on the Google side. My client has a user number with Google that's tied to AdSense. Because I'm the one who looks after his site, I created the Analytics account with my user number. Apparently, this makes the Google unhappy.

    The next thing is for me to try is to delete my profile for his site and use his. I don't know if anyone else has experienced a similar situation; but, I'll post back if it works.
    What problem are you actually experiencing? As long as you use the number associated with their domain profile you should get tracking. It doesn't matter where the account is setup or what it it tied to. The only reason you might want it under their name is so they can access it without needing access to your own account.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  10. #1480
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Thanks for your help Eric, I'll add that code now and let you know how it's going in a few days

 

 

Similar Threads

  1. v150 Simple Google Analytics .sql error !
    By Miff in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Feb 2012, 11:33 PM
  2. Simple Google Analytics-not working
    By RobertG in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 11 Nov 2010, 06:07 PM
  3. Simple (From Google) Analytics Install
    By DagLindt in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 May 2009, 10:46 PM
  4. Simple google analytics- help
    By Pet Herbal Remedies in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 1 Oct 2008, 10:37 PM
  5. Simple Google Analytics not working
    By jvanree in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 29 May 2008, 03:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR