Please Log in or Create an account to join the conversation.
templates/YOUR_TEMPLATE/html/mod_social_slider/default.php
$doc = JFactory::getDocument(); $doc->addScriptDeclaration(" var trackOutboundLink = function(url) { ga('send', 'event', 'outbound', 'click', url, {'hitCallback': function () { document.location = url; } }); } ");
echo '<a href="' . $params->get($key . '_link') . '"' . $target . $nofollow . '>';
echo '<a href="' . $params->get($key . '_link') . '"' . $target . $nofollow . 'onclick="trackOutboundLink(\'http://www.example.com\'); return false;">';