[Pro] Carousel + Google Analytics

Hi all,

I recently completed this site for a client using Walters carousel action and Maxs’ webyep action set.

client was happy till this morning ( she is a PITA really )

http://www.smith-goodfellow.co.uk

I have added her Google analytics code to the home page ( where the carousel stuff is ) and to a couple of other pages, news and newslist which are made using FW and webyep.

Now she is upset as the carousel panes do not show in the analytics.

Does anybody know if there is a way to get the carousel panes to show up in the analytics, basically the six panes are named apage, bpage, etc.

I hunted the google help which does show a way to track javascript onclick links but it I do not know what to do to make it work

http://www.google.com/support/googleanalytics/bin/answer.py?answer=55521

any help gratefully received

Gary


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On Oct 28, 2009, at 12:02 PM, diarbyrag wrote:

I hunted the google help which does show a way to track javascript
onclick links but it I do not know what to do to make it work

<http://www.google.com/support/googleanalytics/bin/answer.py?answer=55521

any help gratefully received

You’re basically going to have to double up the effort on your
carousel tabs. Normally, you apply the Action to the tab image, and
the Action creates a link on that image set to the ID of the pane you
want to have come into view. So if you were to look at the code, you
would see something like

<a href="#apage"><img src=" ... " /></a>

for the apage tab.

The Carousel Tabs Action will overwrite whatever href (URL) is added
to the tab, so you can simply create a dummy URL and add this onclick
code to that URL through the Hyperlink dialog. (I haven’t tested this,
but it should work okay.)

So to add a custom tracker for /panes/apage try this:

  1. Click on the tab for apage, and press Apple-K for the Hyperlink
    dialog.
  2. Click on the External tab, and enter #apage in the URL field.
  3. Click the Extended button in the Hyperlink dialog, and in the
    resulting sub-dialog, press New.
  4. In the Name field, enter onclick
  5. In the Value field, enter javascript:pageTracker._trackPageview('/ panes/apage');

(If you’re viewing this in e-mail, strip out the back-ticks that
surround the JavaScript above – they are there to keep the Web forum
view from rendering the single-quotes as correct punctuation.)

You can use whatever naming scheme you (or your client) like here,
this is just for example. Whatever you use should look like a “legal”
URL (no spaces or illegal control characters), and it will be reported
in the GA interface as if it was a real URL to a normal page that was
clicked. Note that this will not (and cannot) report if someone pages
to the apage pane using the previous/next buttons.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walter,

I love you… ( in a truly professional sense that is ! )

thanks for what has to be the quickest reply on the forum yet.

I will change the pane names to relect the content and then follow your procedure above, will let you know how it goes.

Cheers !

Gary

BTW been meaning so say it for ages, the video you showed ages ago of the birthday party with the balloons which I presume is your daughter, was the best movie clip I have seen in ages, I showed it to loads of my friends - I hope you have it on YouTube…nice one G


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Walter,
Email from client this afternoon

"Hi Gary

Thought you might like to know that the analytics appear to be working for each of the pages.

thanks,

Louise"

Thankyou Walter for your help it should say !

soon as the client pays the invoice I will send a few beer tokens to Philli (-:

have a good weekend

best wishes,

Gary


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options