danix
's git repository
home
/
my projects
/
danixland-site-plugin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e0f7db
)
updated matomo tracking code to include subdomains
master
release_08112020-1215
author
danix
<danix@danix.xyz>
Sun, 8 Nov 2020 11:15:02 +0000
(12:15 +0100)
committer
danix
<danix@danix.xyz>
Sun, 8 Nov 2020 11:15:02 +0000
(12:15 +0100)
danixland-site-plugin.php
patch
|
blob
|
blame
|
history
diff --git
a/danixland-site-plugin.php
b/danixland-site-plugin.php
index
a6859e5
..
c6ec18e
100644
(file)
--- a/
danixland-site-plugin.php
+++ b/
danixland-site-plugin.php
@@
-87,6
+87,9
@@
if ( ! function_exists( 'matomo_tracking' ) ) :
<script type="text/javascript">
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
+ _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
+ _paq.push(["setCookieDomain", "*.danix.xyz"]);
+ _paq.push(["setDomains", ["*.danix.xyz"]]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {