Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Google Analytics 0.5

  1. #1
    Design & Development carlo75's Avatar
    Join Date
    Oct 2009
    Location
    Italy - Perugia
    Posts
    510
    Thanks
    62
    Thanked 106 Times in 59 Posts

    Default Google Analytics 0.5

    Google Analytics
    Version: 0.5
    Author: Carlo Armanni
    Created on: 2009/11/24
    Last Updated:
    2011/03/29
    Tested on: Hotaru 1.0.5 ~ 1.4.2
    Plugins Required: None
    Plug & Play: Yes
    Supported: Yes

    Description
    This plugin allow you to add Google Analytics tracking code to Hotaru, in a simple way. This plugin doesn't count the visits made by user with Admin right (admin permissions)

    Instructions
    1. Upload the "google_analytics" folder to your plugins folder. Install it from Plugin Management in Admin.
    2. Access it from the Admin sidebar
    3. Enter your Web property ID provided from Google Ananlytics and save.

    Revision History
    v.0.5 2011/03/29 - Carlo - Updated GA code and added control for Admin permission
    v.0.4 2010/08/30 - Carlo - Updated hook, to correct snippet in insert <head> tag
    v.0.3 2010/08/27 - Carlo - Updated for new GA Snippet Code
    v.0.2 2009/12/18 - Nick - Updated for Hotaru 1.0
    v.0.1 2009/11/24 - Carlo - Released first version

    Please click "Rate Thread" and give this plugin a rating. Thank you.
    Attached Thumbnails Attached Thumbnails google_analytics_for_hotaru_0_5.jpg  
    Attached Files Attached Files
    Last edited by carlo75; 03-29-2011 at 11:16 AM.


  2. #2
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,915
    Blog Entries
    88
    Thanks
    519
    Thanked 846 Times in 551 Posts

    Default

    Excellent work Carlo. A great choice for your first plugin!

  3. #3
    Senior Member
    Join Date
    Sep 2009
    Location
    WorldWid3
    Posts
    289
    Thanks
    43
    Thanked 43 Times in 30 Posts

    Default

    Awesome stuff. How much different/difficult would be to change this plugin to work with Piwik, open source web analytics software that aims to be an alternative to Google analytics.

  4. #4
    Design & Development carlo75's Avatar
    Join Date
    Oct 2009
    Location
    Italy - Perugia
    Posts
    510
    Thanks
    62
    Thanked 106 Times in 59 Posts

    Default

    @Nick
    Thank you so much... you are the grand master

    @angolanmade
    I don't know how Piwik works, but if it's use tracking code like Google Analytics, I think there are no big problems... please let me know.

  5. #5
    Senior Member
    Join Date
    Sep 2009
    Location
    WorldWid3
    Posts
    289
    Thanks
    43
    Thanked 43 Times in 30 Posts

    Default

    Take a look at this, i have version installed which im able to access my token_auth ID.

    http://dev.piwik.org/trac

  6. #6
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,915
    Blog Entries
    88
    Thanks
    519
    Thanked 846 Times in 551 Posts

    Default

    Do I need to use PHP on my websites to use Piwik?

    You will need a server with PHP to run Piwik. However, the tracking code is a simple JavaScript tag, which can be added to any webpage written in Python, Jsp, ASP, .NET, etc.
    For example, the same instance of Piwik can track data from a PHP website, a simple HTML website and a complex JSP application, simply by copy and pasting the JavaScript tag into the desired pages.
    Code:
    <!-- Piwik -->
    <script type="text/javascript">
    var pkBaseURL = (("https:" == document.location.protocol) ? "https://{$PIWIK_URL}" : "http://{$PIWIK_URL}");
    document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
    </script><script type="text/javascript">
    try {
    var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", {$IDSITE});
    piwikTracker.trackPageView();
    piwikTracker.enableLinkTracking();
    } catch( err ) {}
    </script>
    <!-- End Piwik Tag -->
    http://piwik.org/docs/javascript-tracking/

  7. #7
    Design & Development carlo75's Avatar
    Join Date
    Oct 2009
    Location
    Italy - Perugia
    Posts
    510
    Thanks
    62
    Thanked 106 Times in 59 Posts

    Default

    Need to manage $IDSITE
    no problem on that, when for $PIWIK_URL can be retrieved from global of Hotaru BASEURL while for https need a little string manipulation

  8. #8
    Senior Member Gunaxin's Avatar
    Join Date
    Mar 2010
    Location
    Baltimore, MD - USA
    Posts
    117
    Thanks
    37
    Thanked 26 Times in 16 Posts

    Default

    I know this was a relatively simple plugin, but I was wondering if you might be interested in updating with new functionality. Specifically I'd suggest Event Tracking for outgoing clicks. Its great to measure traffic on your site with Google Analytics, but tracking how much outgoing traffic you are sending to other websites is crucial as well.

    See this link from Google on a method to do this :

    http://www.google.com/support/google...c=cb&lev=index

    In their example they track to www.example.com, which would obviously need to be some php to pull the proper domain name. Having this tracked / summarized by domain would be more beneficial than just by link, but I'm not sure if their is currently a field / variable for that.

    Any chance I could encourage you to give this a shot? The toughest part is putting the onclick on all of the outgoing links. I'm not sure how you would do that without manually modifying all plugins which have them.

  9. #9
    Design & Development carlo75's Avatar
    Join Date
    Oct 2009
    Location
    Italy - Perugia
    Posts
    510
    Thanks
    62
    Thanked 106 Times in 59 Posts

    Default

    Hi Gunaxin,
    thank you for your suggest, I'll try to play with the plugin, and add this new function... althought atm I prefer increase new themes for HotaruCMS

  10. #10
    Senior Member Gunaxin's Avatar
    Join Date
    Mar 2010
    Location
    Baltimore, MD - USA
    Posts
    117
    Thanks
    37
    Thanked 26 Times in 16 Posts

    Default

    Quote Originally Posted by carlo75 View Post
    Hi Gunaxin,
    thank you for your suggest, I'll try to play with the plugin, and add this new function... althought atm I prefer increase new themes for HotaruCMS
    In order for this option to work properly, its best to send Google Analytics just the domain that the traffic is going to, not the entire URL. I'm not sure if there is currently a field for this, but I'd love to actually be able to display that on my page as well. Maybe Nick knows?

    I'd probably be willing to sponsor development of this tracking functionality, as its fairly important to me. Let me know if someone is interested in undertaking it. Thanks.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. User Analytics
    By seekyt in forum Plugin Suggestion Box
    Replies: 27
    Last Post: 12-22-2010, 05:53 AM
  2. Placing Google Adesnse
    By xcitezone in forum How-To and Troubleshooting
    Replies: 4
    Last Post: 11-09-2010, 11:23 PM
  3. Google Gadget
    By rushnp774 in forum Plugin Suggestion Box
    Replies: 1
    Last Post: 02-14-2010, 03:07 AM

Tags for this Thread

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
  •