Google Analytics – for web and mobile traffic

For some odd reason, I have always enjoyed tracking certain types of data. I was very happy when I hooked up the Jetpack suite of plugins for WordPress this past weekend and was then able to see basic site traffic information. Tonight (guess I should say this morning) I have also incorporated a second level of tracking – Google Analytics.

Setting up Google Analytics to track your own app or web page is pretty simple. It will tie your analytics access to your Google account – a simple gmail account will be just fine.

Go to http://www.google.com/analytics/ and click the link saying “New to Analytics -sign up now.” If you already have a google account just type in your credentials on the next page.  You will need to put a note in your app that clearly states that users are being tracked.

Like many google pages, there is a gear on the top right.
Click the gear to go to the account administration screen
Click the plus sign to add a new account
Now you will enter the name and URL of the site or app you want to track.
After you have filled out this short form, Google will generate a unique identifier for you to use from your mobile app or web page. This ID in their terms is called a UA code.

Once this is set up you are ready to use their UA code from your app or from your web page.

Since this post is meant to be only a high level introduction, I will keep this short. Excellent documentation is available on the Google Analytics site.

Tracking basic web pages
If you want to track a web page, just cut and paste the javascript they give you when they generate the code.

Tracking WordPress pages
If you want to track your WordPress page, I recommend installing a plugin such as the Google Analytics for WordPress plugin. It will allow you to type this UA Code in and then do page level tracking.

Tracking iOS page views
Grab the latest Analytics SDK directly from Google – http://code.google.com/apis/analytics/docs/mobile/download.html#Google_Analytics_SDK_for_iOS
Extract it and copy the GANTracker.h and libGoogleAnayltics.a into your existing iOS project with Xcode.

Open up your application delegate and in didFinishLaunching add the following snippet

[[GANTracker sharedTracker] startTrackerWithAccountID:yourTrackerId                          dispatchPeriod:10
                      delegate:nil];
 Now you can do page tracking with a simple line like this: (note I would put this in viewWillAppear in a view controller)
NSError *error;
if (![[GANTracker sharedTracker] trackPageview:yourPageName withError:&error]) {
        NSLog(@"Analytics logging failed %@", error);
}

Conclusion

There is a lot more you can do besides page tracking, but this is enough to hopefully perk your interest and set something up. As you can see, it is really minimal effort to get something up and running.   They have an API for Android and other platforms as well.  As I said before, Google’s documentation is great and for free analytics, it is really excellent!    The benefit of data like this is to aid you in creating better experiences for your users to see what features they like and what gets ignored.  Your biggest challenge will be in determining what and how much to track to gain the best insight into their needs.

 

No sound from the TonePort – fixing the bouncing red clip led problem

I am a pretty big fan of Line 6 gear. Their modeling has gotten better and better over the years. I started with a PodXT many years ago and now have their flagship HD500 which I am very happy with and hope to post a future article on sometime soon. In the meantime, this little post will hopefully help someone else who like me has wasted several hours trying to figure out how to get their TonePort to work again.IMG_0361-1024x768

 

To keep this story from being too long, I got the TonePort UX2 – which is a nice computer recording interface/tone box for Christmas from my wife several years ago. It is really a marvelous little box offering very good sounds for both guitar, vocals and bass. I love the thing but it has brought some headaches along the way. I used to use it with a Mac Book Pro which worked well but was a pain to always disconnect the wires as I needed to move the machine around quite a bit. In August, I got my dream computer – a 27 iMac and couldnt wait to get my magical little TonePort running against it to do some recording. It has been months since then and I had never really gotten it to work with my new computer. It was running briefly a couple of weeks ago but then last weekend started just blinking the red clip lights back and forth. I had tried reinstalling drivers, using their license manager, etc. but nothing worked. Just blinking red clip lights! UGH!

This week, I need to practice a TSO song to play next weekend and I really need this box to run again. Tonight I decided to spend some time to solve the problem and I am happy to say I think I found the root cause. My theory – which was kind of echoed by one of Line 6s support forum posts is that the Mac Migration Assistant that I used when I migrated my files from the MBP to the iMac brought along some extra garbage with it. Thus my attempts to reinstall the drivers were silently failing. The Line 6 uninstall tool apparently doesn’t always work and in this case completely failed. It acted like the old drivers were removed but they were not!

Bottom line – you need to completely eradicate those drivers from your system and reboot before you can use your TonePort again.  Though this is specific to my circumstances (a UX2 migrating from one mac to another mac, I would expect this to apply generally to any TonePort on any machine.  Perhaps the uninstaller is more reliable on a PC.  If you know, please chime in on the comments below.

I’m guessing the uninstaller failed because the Line 6 tools, drivers, etc are spread across so many different directories.  Below are the steps I took to remove the old drivers.  I noticed on some other posts in the Line 6 forums that some folks were having success by removing EVERYTHING tied to Line 6 on your computer.  That is the approach I took and it did work but realize that I lost all of my custom tones in the process for all of my Line 6 gear that were saved on my mac.  In my case, everything is backed up via Time Machine so no big deal, but before you continue make sure you understand the risks and make sure you have things backed up!

I removed all of the files directly via the terminal.  Please be careful when doing this and understand that if you accidentally delete the wrong libraries or other system files you will have more problems than you started with.  Do not do any of this without a backup.  If you have any doubts in your ability, I suggest you contact Line 6 and request a better Uninstaller app that actually works.

BE VERY CAREFUL DELETING FILES IN THESE DIRECTORIES. ONE BAD MOVE AND YOU WILL REALLY HOSE SOMETHING UP! ONLY DELETE THE LINE 6 stuff and NOTHING else!

Here is what I removed.

  • /Library/Audio/MIDI Drivers/Line6*
  • /Library/Audio/Midi Devices/Line 6
  • /Library/Audio/Plug-Ins/VST/Line 6
  • /Library/Audio/Plug-ins/Components/POD*
  • /Library/Frameworks/L6TWX*
  • /Library/Application Support/Line 6
  • /Applications/Line6
  • ~/Library/Preferences/*line6* – only files with line 6 in the middle of the name

There was a forum post at Line 6 that also going to /private/var/db/receipts and running sudo rm -i com.line6*

Once you have eradicated everything Line 6 on your machine, reinstall the latest Line 6 Monkey software – this is their main hub for installing everything else

Now verify that the Line 6 license manager is installed and run it.  I made sure that both the iMac AND the Tone Port are listed. You may have to rescan devices after licensing your computer to find the Tone Port
Install and fire up Pod Farm 2 and play!

Remaining Issues

Things are still not perfect yet! I used to use GearBox as my main app to access the goodness of this little box. Now, GearBox appears to be outdated and replaced by Pod Farm 2. Well that is fine except us old timers don’t have software licenses that fully supports PF2!  Reinstalling GearBox today is not an optimum solution since the link from the Monkey refers to GearBox in an outdated complete package.  i.e. it is a link to a big archive that includes outdated drivers, outdated Monkey, and GearBox.   Not sure why they bundled it but I sure dont want to have to go thru all of this again.  I have issued a support ticket with Line 6 and am awaiting their response. Hopefully us long term Tone Port users can get grandfathered in!

Update 12/13/11 –

Heard response back on my support ticket today copied here for anyone interested:

The POD Farm 2 license is built into the newer POD Studio devices by design. All owners of previous generation Toneport hardware are not ‘grandfathered’ in to get a free POD Farm 2 license. This is not a feature of the device that you purchased, so if you want to use the POD Farm 2 software the license must be purchased. You CAN use the POD Farm 1.12 software for free which will provide you all of the models that you get with the basic model set of the Toneport UX2:


I am not terribly thrilled with this response.  Basically it sucks if you are an early adopter into the TonePort family of products.  If you want to use it and have the same features and sounds as the folks buying the same hardware today, you need to pay them an extra $99 for that privilege.  I suggested in my reply that they take some of the profits from the folks that agree to this to devote time to fix their broken device uninstaller.  The problems with that uninstaller are the reason this post was written.

What’s up with the Option key?

Learned something new today!   While reading about iTunes Match and how to replace your existing music files with higher quality matches from the cloud, I took a moment to examine smart playlists.  This led to a side search on finding duplicates and intelligently removing them.  In an Apple support article, it showed how to quickly find duplicates with the somewhat familiar File->Display Duplicates option.  I have used that option before but always wanted something more.

I wanted a way to discover duplicate songs only if they were on different albums.  i.e. there are times when I may want to hear an album in its entirety like for example if I want to just hear Kansas’ epic Leftoverture album.  There are other times when I may want to listen to every song by artist.  I’d search for Kansas and want to hear all of the songs but not listen to “Carry On Wayward Son” six times.  Obviously I have gotten off track, but the point is that in this support article, it listed a separate mode of discovering duplicates – “Display Exact Duplicates.”  This is only shown if you hold the Option key down while the menu is open.  WOW!  I didn’t realize Apple had hidden optional menu choices available for their various apps.  I am not a great fan of hiding behavior in menu’s particularly behind an option key, but I am happy to have this new menu item available.  It got me wondering what other cool features may be overlooked because they only show up while holding down the option key???

Back to my second music listening case above.  If I choose to listen to a particular Artist, I would still like to be able to quickly listen to all of their songs and not hear duplicates.  I am pretty sure that the Smart Playlists feature will let me do this but have never tried it.  This feature appears to offer a lot and sadly I have not realized its full potential.  Looking forward to taking a few minutes to build some interesting lists!

What have you done with Smart Playlists?  What are your favorite hidden menu options?  Add a comment and say hey!