Google Analytics: universal js and click tracking

If you use the new (as of October 2013) UA google analytics tracking code, then all your old event tracking onclick tags will not work. If you don’t want to muck around with js files, labeling page items and creating event listeners for each possible event, then this is the correct format to use for an onclick= tag:

 

<a onclick="ga('send', 'event', { 'eventCategory': 'your_own_label_here', 'eventAction': 'your_own_label_here', 'eventLabel': 'your_own_label_here', });" href="http://etcetc.com" > Your link text here </a>

optionally, you can add a value:

<a onclick="ga('send', 'event', { 'eventCategory': 'your_own_label_here', 'eventAction': 'your_own_label_here', 'eventLabel': 'your_own_label_here', 'eventValue': 9 });" href="http://etcetc.com" > Your link text here </a>

note the proper use of double and single quotes, and that the event value is not in quotes.

I hope this saves you time. I had a heck of a time finding clear instructions.

 

Here is how to tell the difference between the old and the new universal code

The old tracking code will contain lines that look like this:

_gaq.push(['_setAccount', 'UA-XXXXXXXX-X']);
_gaq.push(['_trackPageview']);

 

The new universal code will not, instead your tag will be represented in the js like this:

ga('create', 'UA-XXXXXXXX-X', 'mydomain.com');
ga('send', 'pageview');

 

 

 

Fake ad, real humor

In this fake ad, they manage to cram every cliche and trope into one master cut, and to this designer, it’s hilarious.

It’s also amazing to me how even though it’s all fake, the shots still convey emotional surges.

 

Things I Read this Weekend (3-23-2014)

Too much choice is always bad
http://blog.ted.com/2012/07/18/does-having-choice-make-us-happy-6-studies-that-suggest-it-doesnt-always/

http://www.ted.com/talks/sheena_iyengar_choosing_what_to_choose

Simon Sinek is my hero:
http://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action

http://www.inc.com/stephanie-meyers/simon-sinek-evolution-leadership.html

https://startwithwhy.com/

The most social companies:
http://mashable.com/2014/03/18/social-small-biz-winner/

It makes me want a chromebook. Except I don’t need a chromebook:
http://howto.cnet.com/8301-11310_39-57620507-285/how-to-run-both-chrome-os-and-ubuntu-on-a-chromebook/?ttag=fbwp

Good business advice from Warren Buffett’s career
http://ventureburn.com/2013/03/14-lessons-every-startup-can-learn-from-warren-buffett/

Russia is building a space hotel with 4 guest rooms, launching in 2 years:
http://en.docsity.com/news/interesting-facts/russia-building-hotel-space/

I <3 N Y ?

I think if the brilliantly simple I (heart) NY campaign was pitched today, it would be rejected. We have become too cynical — too suspicious of advertising for something so direct to work. The reason it endures now is that it’s survived long enough to become beloved kitsch.

prevention cure

Sometimes the right fortune finds you

Warp-Dogs-61

Warp Speed, Fido

(click it to see it move)

That’s entertainment?

Today, while the Boston police are tracking the 2nd suspected Boston Marathon bomber, I clicked on a news story, and had to watch a video ad first. It was for a buddy cop movie with lots of guns, car chases. It did not feel like entertainment. It did not feel fun today. Maybe that’s the correct reaction to seeing guns and a car chase. Maybe they should not be entertainment.

Boston

I saw “Argo” on Saturday, which began with a very simple history lesson to remind the audience that the US engineered a coup and supported a dictator in order to secure oil supplies, which resulted in unfathomable misery and killings for decades. Plus the 1979 hostage crisis, etc, etc.
Now this bombing, today.
I’m not condoning violence. I abhor violence. But I also recognize many people are very angry about all sorts of things we generally don’t think about, and from their perspective, it’s with cause. I recognize karma. I recognize there’s always more to the story. And the victims are usually innocent of the cause.
Please be nice. Everyone, please learn to forgive the past and work toward peace and understanding. Violence on top of violence does no good.

bubbles

I can have fun doing the dishes

Defending the latest Apple ads.

You know the recent ones with the Ferris Bueller-like Apple genius? The press has been uncomplimentary, as have the bloggers. But I think there is actually a strategy here. Once Apple sells Macs to all the “low hanging fruit” who lust after beautiful design, they need to win over other populations of potential customers. One such group would be people who are afraid they won’t know how to get started. These ads humorously address common unspoken fears among potential first-time computer buyers. They aren’t speaking to the kind of people who read Mashable.

Despite all the accusations of pandering — something about these Apple ads feels right to me: I think they get the mood right. I’ve sat with PC users far too often and felt how confused and frustrated they are at this box in front of them that makes everything so damn hard to do and hard to understand (from their perspective). I think these ads give a subliminal message that it’s going to be OK — this computer will work for you. You’ll be able to figure it out. That’s very reassuring to an audience of people that is not technical, not geeks — not us.

I give Apple credit for trying to go beyond beauty shots and selling design, to an attempt at communicating other aspects of the ownership experience. The Apple market is now the mass-market, not just creative professionals. These ads are not targeted at the geek core, but at first-time purchasers, switchers, and the type of customer that has trouble understanding the difference between the hard drive and the CPU.

There is a population that won’t trust the corporate voice telling them “don’t worry — it’ll just work — buy it because it’s beautiful and the people in the photos are all young, gorgeous and happy”. Maybe these future Apple customers need more evidence. Maybe they are not impressed by industrial design. Maybe Apple is reaching beyond the already-converted.

These are the ads to which I refer: