Hello, I am using PiwikPro without the tag manager (want to keep it that way) with this code only:
var _paq = _paq || ;
var u = "https://your-account-name.piwik.pro/";
_paq.push(["setTrackerUrl", u + "ppms.php"]);
var d = document,
g = d.createElement("script"),
s = d.getElementsByTagName("script");
g.async = true;
g.defer = true;
g.src = u + "ppms.js";
Is it possible to add some code to set up these 2 kind of goals"
- track users who click on a mailto link
- track users who click on a phone number
Or is setting up these goals only possible within the tag manager?
Thanks for the help!
it is possible to set it up using our JS tracking API.
Here’s a link to our documentation: API — Piwik PRO Analytics Suite 16.40 documentation
Thank you for your help. I already read those docs, but don’t know how to use it…
So for example if I want to track mailto:email@example.com on this page:
Contact Foto Loek
how to set it up excactly?
Hey, there you have a more detailed example → Guides — Piwik PRO Analytics Suite 16.40 documentation
You need to hardcode it on your webpage, each time someone click on en element an _paq.push method is used that will send the data to Piwik. The custom event needs some arguments to be later dispaled correctly in Analytics module. Here is how custom event tag works in Piwik PRO Tag Manager - Custom event tag | Piwik PRO help center With using _paq.push you are doing the same thing but manually. You might need a help of a developer to set it up on your page.