Matomo version: 5.5.2 and 5.3.1
Situation: I installed the Matomo Tag Manager tag on a page using the URL below.
How do I install the Matomo tracking code on modern SharePoint Pages?
When counting events, I encountered an issue where a single click was counted multiple times (2-4 times).
Have you seen this issue before?
Has it been reported as a bug?
The event settings are as follows:
Variables
1
・Name: ID1
・Matomo URL: Your Matomo URL
・Matomo idSite: 1
・Enable Heartbeat Timer
2
・Name: Custom Javascript Variable (keywords)
・Set this variable: Javascript Function
function() {
var input = document.querySelector(‘input.o365sx-searchBoxActive’);
return input ? input.value : ‘’;
}
Tag
1
・Name: Item 1: Obtains the number of link clicks on each page
・Tracking Type: Event
・Event Category: Item 1: Obtains the number of link clicks on each page
・Event Action: {{ClickText}}:{{ClickDestinationUrl}}
・Event Name: {{PagePath}}
2
・Name: Item 2: Obtains the number of search button clicks and keywords entered in the search box
・Tracking Type: Event
・Event Category: Item 2: Obtains the number of search button clicks and keywords entered in the search box
・Event Action: {{Custom JavaScript Variable (keywords)}}
・Event Name: {{PageUrl}} ;{{PageTitle}}
1 post - 1 participant