Page 1 of 2 12 LastLast
Results 1 to 10 of 2161

Hybrid View

  1. #1
    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

  2. #2
    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

  3. #3
    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

  4. #4
    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

  5. #5
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    Let me know how this works for you.
    Hi Eric,

    I added the extra code you suggested a few days ago, however GA still doesn't appear to be tracking image search data. In my GA account the searches still show as "google.com (referral)" then "/imgres" then if I try and found out the keyword it says "(not set)"

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by mike2001uk1 View Post
    Hi I have recently uploaded the latest version of this module and would like to know how this module tracks the E commerce side of things through Google analytic's Not adwords.

    I did have a module in which allowed the tracking of the E commerce through Google analytics but some thing messed up the other week and tracking stopped.

    the site i have installed the module on is below any info will help
    http://www.vivanco-direct.com/


    cheers
    Mike B
    Quote Originally Posted by gaffettape View Post
    Hi Eric,

    I added the extra code you suggested a few days ago, however GA still doesn't appear to be tracking image search data. In my GA account the searches still show as "google.com (referral)" then "/imgres" then if I try and found out the keyword it says "(not set)"

    hmm ... let me take a look at it here and see what the issue might be.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

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

    Default Re: Simple Google Analytics - Support

    YAAAAAAAHOOOOOOO!!!

    ahem.

    It seems I had long ago played around with JAM for an affiliate program we never pursued. I had completely forgotten about it. Once I removed the directory associated with JAM, Google Analytics started reporting sales.

    I was about to lose it there for a bit.

    Whew!

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by hermes369 View Post
    YAAAAAAAHOOOOOOO!!!

    ahem.

    It seems I had long ago played around with JAM for an affiliate program we never pursued. I had completely forgotten about it. Once I removed the directory associated with JAM, Google Analytics started reporting sales.

    I was about to lose it there for a bit.

    Whew!
    Glad to hear you got it working. Thanks for letting everyone know what the issue was.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  9. #9
    Join Date
    May 2009
    Posts
    413
    Plugin Contributions
    0

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by econcepts View Post
    hmm ... let me take a look at it here and see what the issue might be.
    Hi Eric,

    Just wanted to know if you ever managed to find out what the issue was with trying tracking google image searches using your suggested method.

    My original question is here, and your first response is here.

    Thanks

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

    Default Re: Simple Google Analytics - Support

    Quote Originally Posted by gaffettape View Post
    Hi Eric,

    Just wanted to know if you ever managed to find out what the issue was with trying tracking google image searches using your suggested method.

    My original question is here, and your first response is here.

    Thanks
    This should work for you (from my previous post you referenced. I've got it on a few sites and it works ok. Are you pasting the code as indicated into the correct location in your admin? What type of results are you getting?
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

 

 
Page 1 of 2 12 LastLast

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

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