Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $( "#post-box a[href^='http']" ).each(function() {
- if ($("#post-box a[href$='.pdf']")){
- $( this ).on( "click", "ga('send','event','" + pageName + ":Body:Paragraph','Click','Download:PDF:" + $(this).text() + "');" );
- }else{
- $( this ).on( "click", "ga('send','event','" + pageName + ":Body:Paragraph','Click','Link:External:" + $(this).text() + " -- " + $(this).attr( "href" ) + "');" );
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement