Created
July 15, 2013 05:21
-
-
Save whyisjake/5997654 to your computer and use it in GitHub Desktop.
Javascript method for triggering things with the Bootstrap carousel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function(){ | |
jQuery('.carousel').on('slid', function () { | |
googletag.pubads().refresh(); | |
_gaq.push(['_trackPageview']); | |
console.log('Pushed a pageview, and an ad refresh, like a boss.'); | |
var urlref = location.href; | |
PARSELY.beacon.trackPageView({ | |
url: urlref, | |
urlref: urlref, | |
js: 1, | |
action_name: "Next Slide" | |
}); | |
return true; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment