Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi sackerman…funny you should ask, this is something I just got working this morning.

    There may be a better way, but here’s how I did it:

    • Add an ID to the “Read More” image:
      [expand title="<img id='readMoreImg' src='imgs/read-more.jpg' />" trigclass="noarrow" tag="div"]
    • Add some jQuery (after the [/expand] tag) that will add an “onClick” event to the image.
    • Set up the onClick event to call the GA event tracking, then return true (so Collapse-O-Matic will keep working after the event is called)
    • So my jQuery looks something like this:

      <script type="text/javascript">
      	jQuery("#readMoreImg").attr("onClick", "_gaq.push(['_trackEvent', 'ReadMore', 'Clicked', 'Event Title Goes Here']);return true");
      </script>

      Hope this helps!

    Thread Starter sackerman

    (@sackerman)

    Looks like it may do the trick!
    Thanks a ton WStringer2, i’ll post back with my findings!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: jQuery Collapse-O-Matic] Tracking Expands with Google Analytics Event Tracking’ is closed to new replies.