Using Perl/Catalyst and Want to Use Sometrics? Try This.

logo.pngI’ve been analyzing various Social Applications Analytics tools lately, and have recently stumbled upon Sometrics. Sometrics handles full Analytics for your Facebook, Bebo, and MySpace applications, and will actually utilize the Facebook API to retrieve demographic info about those visiting your Application. As I examine the other Analytics solutions for Facebook and other Social Network Applications, I’ll try to post my findings of their strengths and weaknesses here, OpenSocialNow, and FacebookAdvice.com. If you’re not a techie, you may want to skip the next part, or forward it onto your IT department.

One thing I noticed about Sometrics is it seems to only provide code to paste on your Application pages for PHP, Ruby, and ASP.net. The code they provide is relatively simple, but in case you’re wondering how to do it in Perl, here is how I did it in Template Toolkit under Catalyst on Perl:

Enter this on all Application pages (I do it in my “footer” file):


[% IF Catalyst.request.param("installed") %]

[% ELSE %]

[% END %]

Then add this in the “post-remove url” subroutine for your Applicaiton (or create one and add the URL in your App’s config):

=head2 remove

  Page that handles App removal

=cut

sub remove : Local {

  my ( $self, $c ) = @_;

  if ($c->req->param(“fb_sig_uninstall”)) {

    $c->res->redirect(qq{http://halo.sometrics.com/met.gif?a=u&app=}.$c->req->param(“fb_sig_api_key”).qq{&uid=}.$c->req->param(“fb_sig_user”).qq{&age=&sex=&city=&state=&country=&friend=&src=fb});

    $c->detach();

  }

  return;

}

Published by

jessestay

Jesse Stay has been a pioneer in the space of social media marketing since before it was called "social media marketing". Originally a software developer, Jesse built a tool called SocialToo.com which helped brands like Pepsi, Brittany Spears, and MC Hammer grow their social media presence, and before he knew it brands were coming to him for help to grow their presence in very unique ways. His tool was featured on almost every tech blog and even mainstream news sites like New York Times, Techcrunch, and Mashable. Jesse also spent a brief period working FOR Facebook, Inc., helping them to build out their documentation to help companies integrate Facebook Connect into their websites and mobile apps. Jesse took his skills and helped the LDS Church kick off most of its social media programs. While there he helped launch the award-winning "I'm a Mormon" marketing campaign with global reach worldwide in the millions of views and followers. Jesse established new global programs at the Church to further grow its reach amongst both members and non-members of the Church, working with every department of the Church, also including entities like the Mormon Tabernacle Choir and Brigham Young University. He also helped the Church navigate its voice and presence during the Mitt Romney Presidential campaign due to the significant attention the Church was getting at the time. He established the social media advertising techniques and strategies employed at Deseret Digital Media growing over 20 million fans across their news properties in just 6 months, and was featured on AdWeek for his success. As founder and Principal of Stay N Alive, Jesse has developed very unique techniques in social media advertising to help organizations grow presences, within months on minimal budgets, into hundreds of thousands of highly relevant and engaging fans and followers. He designed and teaches social media advertising at LDS Business College. He has helped grow sales, and has a belief that yes, you CAN measure social! Jesse has been featured as one of 10 entrepreneurs to follow on Twitter (next to Biz Stone and Ev Williams, founders of Twitter) by Entrepreneur magazine. Jesse has written 9 books on the topic of social media marketing and development, including Google+ Marketing For Dummies and Facebook All In One For Dummies, and eats, lives, and drinks social media with a personal combined presence of over 600,000 followers on his personal social profiles.

Leave a Reply

Your email address will not be published. Required fields are marked *