openmindculture / ingo-steinke.de

www.ingo-steinke.com is a portfolio website about web developer Ingo Steinke. The site is built using HTML, CSS, JavaScript, and 11ty (eleventy). English version: www.ingo-steinke.com

Home Page:https://www.ingo-steinke.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

enhance statistics

openmindculture opened this issue · comments

  • removed obsolete and dysfunctional Microsoft tracking code [3.7.1]

    • Microsoft Ads don't need tracking on target page unless we want to use self-learning campaign types
  • add custom Matomo event to reintroduce missing search terms [3.9.1]

Matomo fails to display search terms from referrers in the free version.
Webalizer and default Apache log files on shared hosting have not been a useful alternative either.

_paq.push(['trackEvent', 'Contact', 'Email Link Click', '[name@example.com](mailto:name@example.com)']);

The above code example tracks the following event data:

Event Category: Contact
Event Action: Email Link Click
Event Name: name@example.com
It works by telling Matomo that you want to push data into the platform _paq.push([ ]); and trackEvent defines the type of data being sent. Matomo then recognises the next two to four attributes as the Event’s; Category, Action, Name, Value.

You might also have noticed that the above code only shows three values after trackEvent. This is because the Event Value attribute is optional. If a Name or Value is not required, you can simply leave out the final parameters, rather than adding blank ones.

https://matomo.org/faq/reports/implement-event-tracking-with-matomo/

closed as impossible