angulartics / angulartics-piwik

Piwik plugin for Angulartics
MIT License
27 stars 14 forks source link

Missing TrackLink api method #3

Closed patfrat closed 8 years ago

patfrat commented 8 years ago

Hello,

It will be great to add trackLink support too.

$analyticsProvider.api.trackLink = function(url, linkType) {
  if ($window._paq) {
    $window._paq.push(['trackLink', url, linkType]);
  }
};
inolasco commented 8 years ago

Looks good. Could you please make a pull request with this? If not I can add it later. Also, linkType should maybe default to 'link'.

patfrat commented 8 years ago

Thanks for the merge. Could you tag your project with a new minor version 1.0.3 with this change ? I use bower to install it with this tag : "angulartics-piwik": "1.0.x" And it download 1.0.2 version without trackLink method.

inolasco commented 8 years ago

Sorry for the delay, I just merged your latest pull request, and updated both bower and npm. Thanks!