Track custom links in piwik

Hi,
I would like to track custom links. Can I just create a link pattern and then track it?

Like _paq.push(['trackLink', linkPattern, 'link']) the ‘linkPattern’ is a regular expression.

If this can be done, can anybody tell me how?

Appreciate it.

Hi,

What do you mean by custom link? Do you want to track a click on an external link that Piwik doesn’t detect?

Hi Lukas,

Actually I would like to track some ajax calls, then I used ‘trackLink’ and it worked well. But I dont wanna push these outlinks one by one bcz they have similar pattern. So I just wondering can I create a pattern link(using regular expression) and track this pattern link, then piwik will track all these ajax call links.

Thanks