PDA

View Full Version : tracking outbound clicks in fadeslideshow.js with Google Analytics



HalRau
02-18-2014, 12:57 PM
I would like to track outbound clicks to urls included in the code of fadeslideshow.js. I have a page with multiple slide shows running at http://wildwoodba.org/
Does anyone know how to do this?

jscheuer1
02-18-2014, 06:05 PM
The code on that paged labeled:



//Code source http://www.carronmedia.com/extend-google-analytics-with-jquery/

should do that, but it's not being executed due to the slideshow script's call to noConflict mode. First thing I would try is changing:


<script type="text/javascript">
//Code source http://www.carronmedia.com/extend-google-analytics-with-jquery/
$(document).ready(function(){

to:


<script type="text/javascript">
//Code source http://www.carronmedia.com/extend-google-analytics-with-jquery/
jQuery(document).ready(function($){

That should allow the tracking code to work in the noConflict environment.

The browser cache may need to be cleared and/or the page refreshed to see changes.

HalRau
02-19-2014, 12:52 PM
I have modified the code as you suggested and have clicked on a number of images. Will check the event tracking record tomorrow and get back to you. Thanks for your help

HalRau
02-20-2014, 01:05 PM
The modified code worked. We are now tracking clicks to websites off the fadeslideshow images. Thanks again for helping.