Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • xyzb Friend
    #171239

    I would like to know how to add Google Analytics code to the ja-video-thumb script. We would like to know if people are clicking on our videos that are offered for viewing. I tried to include the “onclick=’pageTracker._trackEvent(‘outbound’,this.href,location.href)” but that doesn’t seem to work or I have not included it correctly in the code.

    <div class=”ja-video-thumb”>{japopup type=”youtube” content=”http://www.youtube.com/v/49ALwDsUzrk?version=3&hl=en_US&rel=0″ width=”640″ height=”380″ onclick=’pageTracker._trackEvent(‘outbound’,this.href,location.href)’ title=”Birth of the modern American civil rights movement” description=”December 1, 1955:Rosa Parks was arrested in Montgomery, Alabama for refusing to give up her seat to a white man and move to the back section of a municipal bus. Her arrest resulted in a year-long boycott of the city bus system by African Americans and led to legal actions ending racial segregation on municipal buses throughout the South”}<img height=”81″ width=”291″ src=”images/featured/rosa_parks.jpg” alt=”rosa_parks” />{/japopup}</div>

    Any help or insight would be appreciated!

    Thanks

    xyzb Friend
    #427335

    You need to add the following to the image code –
    onclick=”_gaq.push([‘_trackEvent’, ‘Videos’, ‘Play’, ‘Name of Video’]);”

    The data is stored in your Google Analytics account under “Content” then “Events” .
    Here is the info on Google – http://code.google.com/apis/analytics/docs/tracking/eventTrackerGuide.html

    There may be other ways of doing this, but this is what I was looking for.

    I edited the following for each video and it works like a charm –

    <div class=”ja-video-thumb”>{japopup type=”youtube” content=”http://www.youtube.com/v/49ALwDsUzrk?version=3&hl=en_US&rel=0″ width=”640″ height=”380″ title=”Birth of the modern American civil rights movement” description=”December 1, 1955:Rosa Parks was arrested in Montgomery, Alabama for refusing to give up her seat to a white man and move to the back section of a municipal bus. Her arrest resulted in a year-long boycott of the city bus system by African Americans and led to legal actions ending racial segregation on municipal buses throughout the South”}<img height=”81″ width=”291″ onclick=”_gaq.push([‘_trackEvent’, ‘Videos’, ‘Play’, ‘Rosa Parks’]);” src=”images/featured/rosa_parks.jpg” alt=”rosa_parks” />{/japopup}</div>

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 1 voice, and was last updated by  xyzb 12 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum