1
0
Fork 0

rename Piwik -> Matomo

This commit is contained in:
Lukas Winkler 2018-04-04 11:45:12 +02:00
parent 5a65dfaff1
commit e78ffe1de4
No known key found for this signature in database
GPG key ID: 94AFBE7C2656A5B5
17 changed files with 108 additions and 176 deletions

View file

@ -1,4 +1,4 @@
Piwik Browser Injector
Matomo Browser Injector
========
[![Chrome Web Store](https://img.shields.io/chrome-web-store/v/bglodhjbeeolbfpodfacccmnjledmggn.svg)](https://chrome.google.com/webstore/detail/piwik-injector/bglodhjbeeolbfpodfacccmnjledmggn)
@ -8,19 +8,19 @@ Piwik Browser Injector
[![Mozilla Add-on](https://img.shields.io/amo/v/piwik-injector.svg)](https://addons.mozilla.org/de/firefox/addon/piwik-injector/)
[![Mozilla Add-on](https://img.shields.io/badge/mozilla%20addon-download%20now-brightgreen.svg)](https://addons.mozilla.org/de/firefox/addon/piwik-injector/)
Piwik Browser Injector helps you to try out [Piwik](https://piwik.org/), the leading open source web analytics software, in cases where it isn't possible to modify the source of a website or when you just want to quickly see how the visitor data of your website would look like in Piwik.
Matomo Browser Injector helps you to try out [Matomo](https://matomo.org/), the leading open source web analytics software, in cases where it isn't possible to modify the source of a website or when you just want to quickly see how the visitor data of your website would look like in Piwik.
### Usage:
* open the domain, where you want to include the tracking code localy
* click on the Piwik Browser Injector icon in your toolbar and enter the URL to your piwik instance and the ID of your website
* click on the Matomo Browser Injector icon in your toolbar and enter the URL to your piwik instance and the ID of your website
* if you want to try out advanced features you can enable the expert mode where you can freely modify the tracking code
This extention is in an early development state and may include backward-incompatible changes in future versions.
If you notice any bugs or have wishes for features open an issue on the github repository:
https://github.com/Findus23/piwik-injector
https://github.com/Findus23/matomo-injector
Licended under [the MIT License](https://github.com/Findus23/piwik-injector/blob/master/LICENSE) and based on the work of [hromadadan](https://github.com/guzart/customjs) and [xcv58](https://github.com/xcv58/Custom-JavaScript-for-Websites-2)
![screenshot](docs/screenshot_chrome_1.png)
![screenshot](docs/screenshot_chrome_1.png)

View file

@ -1,10 +1,10 @@
{
"extension_name": {
"message": "Piwik Injector",
"message": "Matomo Injector",
"description": "name of the extension"
},
"extension_description": {
"message": "Teste Piwik, die Open Source, auf Datenschutz spezialisierte Web-Analytics-Software, ohne auch nur eine Datei ändern zu müssen.",
"message": "Teste Matomo, die Open Source, auf Datenschutz spezialisierte Web-Analytics-Software, ohne auch nur eine Datei ändern zu müssen.",
"description": "a short description shown in the extension list"
},
"host_title": {
@ -63,4 +63,4 @@
"message": "aktivieren",
"description": "label for checkbox"
}
}
}

View file

@ -1,27 +1,27 @@
{
"extension_name": {
"message": "Piwik Browser Injector",
"message": "Matomo Browser Injector",
"description": "name of the extension"
},
"extension_description": {
"message": "Try out Piwik, the open source, privacy aware web analytics software, without the need to modify anything.",
"message": "Try out Matomo, the open source, privacy aware web analytics software, without the need to modify anything.",
"description": "a short description shown in the extension list; should be pretty short, but descriptive"
},
"extension_tags": {
"message": "piwik, analytics, javascript, debugging, injecting, open source,",
"message": "matomo, analytics, javascript, debugging, injecting, open source,",
"description": "tags for Firefox addon description (maximum 20)"
},
"extension_screenshot_1": {
"message": "Add the piwik tracking code to every website without access to the website source",
"description": "description for the first screenshot (https://github.com/Findus23/piwik-injector/blob/master/docs/screenshot_firefox_1.png)"
"message": "Add the matomo tracking code to every website without access to the website source",
"description": "description for the first screenshot (https://github.com/Findus23/matomo-injector/blob/master/docs/screenshot_firefox_1.png)"
},
"extension_screenshot_2": {
"message": "Future visits to this domain will be tracked ...",
"description": "description for the second screenshot (https://github.com/Findus23/piwik-injector/blob/master/docs/screenshot_firefox_2.png)"
"description": "description for the second screenshot (https://github.com/Findus23/matomo-injector/blob/master/docs/screenshot_firefox_2.png)"
},
"extension_screenshot_3": {
"message": "... and processed by Piwik",
"description": "description for the third screenshot (https://github.com/Findus23/piwik-injector/blob/master/docs/screenshot_firefox_3.png)"
"message": "... and processed by Matomo",
"description": "description for the third screenshot (https://github.com/Findus23/matomo-injector/blob/master/docs/screenshot_firefox_3.png)"
},
"host_label": {
"message": "hosts",
@ -83,16 +83,16 @@
"message": "enable",
"description": "label for checkbox"
},
"piwik_url_title": {
"message": "the URL to your piwik instance without trailing piwik.php or piwik.js",
"description": "title text of piwik URL input"
"matomo_url_title": {
"message": "the URL to your matomo instance without trailing matomo.php or matomo.js",
"description": "title text of matomo URL input"
},
"piwik_url_placeholder": {
"message": "piwik URL",
"description": "placeholder text of piwik URL input"
"matomo_url_placeholder": {
"message": "matomo URL",
"description": "placeholder text of matomo URL input"
},
"site_id_title": {
"message": "the id of your website in Piwik",
"message": "the id of your website in Matomo",
"description": "title text of site ID input"
},
"site_id_placeholder": {
@ -108,7 +108,7 @@
"description": "checkbox on settings page"
},
"enabled_badge_title": {
"message": "This website is modified by Piwik Browser Injector.",
"message": "This website is modified by Matomo Browser Injector.",
"description": "title text of attention icon on every page where extention is enabled."
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View file

@ -14,9 +14,9 @@
viewBox="0 0 1400 560"
version="1.1"
id="svg8"
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)"
sodipodi:docname="large_chrome_marquee.svg"
inkscape:export-filename="/home/lukas/git/piwik-injector/docs/large_chrome_marquee.png"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
sodipodi:docname="chrome_large_marquee.svg"
inkscape:export-filename="/home/lukas/git/piwik-injector/docs/chrome_large_marquee.png"
inkscape:export-xdpi="25.4"
inkscape:export-ydpi="25.4">
<defs
@ -29,8 +29,8 @@
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.175"
inkscape:cx="2333.9422"
inkscape:cy="680.24939"
inkscape:cx="2262.5136"
inkscape:cy="1131.678"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
@ -60,7 +60,7 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
@ -78,36 +78,6 @@
y="-262.79681"
ry="0"
rx="0" />
<g
id="g1511"
transform="matrix(2.4298922,0,0,2.4306479,165.42418,-328.0484)"
style="stroke-width:0.41147691">
<path
d="m 251.10711,57.866126 c -3.69041,-1.061508 -7.53992,1.078794 -8.59825,4.780492 l -7.94456,27.788448 -7.94456,-27.788448 c -0.84984,-2.973564 -3.50555,-4.906434 -6.42867,-5.014737 -0.14781,-0.0134 -0.2921,-0.0056 -0.43921,-0.0095 -0.14675,0.0039 -0.29139,-0.0039 -0.43885,0.0095 -2.92312,0.108303 -5.57883,2.041173 -6.42902,5.014737 l -7.9114,27.673125 -7.91139,-27.673125 c -1.05834,-3.701698 -4.90785,-5.842 -8.59826,-4.780492 -3.69076,1.061508 -5.82436,4.922309 -4.76638,8.624006 l 14.46777,50.606678 c 0.83714,2.92736 3.42371,4.84821 6.29285,5.01151 0.17357,0.0163 0.34326,0.008 0.51541,0.0113 0.17216,-0.003 0.34184,0.005 0.51541,-0.0113 2.86914,-0.1633 5.45571,-2.08415 6.2925,-5.01151 l 7.97136,-27.882672 7.97137,27.882672 c 0.8442,2.95272 3.46887,4.87991 6.36799,5.01303 0.15911,0.0147 0.31468,0.007 0.47308,0.0105 0.1584,-0.004 0.31397,0.004 0.47343,-0.0105 2.89877,-0.13312 5.52344,-2.06031 6.36764,-5.01303 l 14.46777,-50.606678 c 1.05833,-3.701697 -1.07562,-7.562498 -4.76603,-8.624006"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.01451599"
id="path916"
inkscape:connector-curvature="0" />
<path
d="m 264.76067,114.48061 c 0,4.26819 3.37467,7.64287 7.64293,7.64287 4.2679,0 7.64293,-3.37468 7.64293,-7.64287 V 65.23389 c 0,-4.267906 -3.37503,-7.642931 -7.64293,-7.642931 -4.26826,0 -7.64293,3.375025 -7.64293,7.642931 v 49.24672"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.01451599"
id="path918"
inkscape:connector-curvature="0" />
<path
d="m 159.68721,114.50432 c 0,4.26818 3.37467,7.64286 7.64293,7.64286 4.26791,0 7.64293,-3.37468 7.64293,-7.64286 V 65.257879 c 0,-4.268258 -3.37502,-7.642931 -7.64293,-7.642931 -4.26826,0 -7.64293,3.374673 -7.64293,7.642931 v 49.246441"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.01451599"
id="path920"
inkscape:connector-curvature="0" />
<path
d="M 320.62903,89.658955 340.41598,69.87186 c 2.83528,-2.835275 2.83528,-7.319081 0,-10.154356 -2.83527,-2.835628 -7.31908,-2.835275 -10.15435,0 l -23.62059,23.62059 V 65.23389 c 0,-4.267906 -3.37468,-7.642931 -7.64258,-7.642931 -4.26826,0 -7.64293,3.375025 -7.64293,7.642931 v 49.24672 c 0,4.26819 3.37467,7.64287 7.64293,7.64287 4.2679,0 7.64258,-3.37468 7.64258,-7.64287 v -10.83387 l 3.83328,-3.832864 19.55589,19.899554 c 2.81022,2.85956 7.29403,2.8987 10.154,0.0882 2.85997,-2.81064 2.89877,-7.29409 0.0882,-10.15406 L 320.62903,89.658955"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.01451599"
id="path922"
inkscape:connector-curvature="0" />
<path
d="m 126.60364,89.843634 -4.2e-4,-0.0026 H 112.74346 V 71.471707 h 13.59034 c 5.07711,0 9.19272,4.115859 9.19272,9.192684 0,4.986162 -3.97189,9.035239 -8.92288,9.179243 z m 24.40735,-9.288957 c 0,-12.32147 -9.74725,-22.340359 -21.94771,-22.832837 l 0.009,-0.04727 h -23.9721 c -4.26818,0 -7.643,3.375025 -7.643,7.642931 v 49.079189 c 0,4.26819 3.37482,7.64328 7.643,7.64328 4.26822,0 7.6429,-3.37509 7.6429,-7.64328 v -10.95735 h 16.3292 l -0.009,-0.0518 c 12.20046,-0.49276 21.94771,-10.51136 21.94771,-22.832831"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.01451599"
id="path924"
inkscape:connector-curvature="0" />
</g>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:103.06502533px;line-height:64.41564178px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458335px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
@ -120,5 +90,11 @@
x="291.63077"
y="199.56245"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'TeX Gyre Heros';-inkscape-font-specification:'TeX Gyre Heros Bold';fill:#ffffff;stroke-width:0.26458335px">Browser Injector</tspan></text>
<path
d="M 426.71546,-175.56044 H 365.19078 L 338.91924,-59.920815 312.64769,-175.56044 h -63.0965 v 154.934555 h 40.41769 v -65.1174 c 0,-13.47265 0,-33.456885 -0.44908,-49.174855 2.46998,15.71797 6.96085,35.702365 10.55358,49.174855 l 17.28979,65.1174 h 41.54045 l 17.06519,-65.1174 c 3.59273,-13.6971 8.0836,-33.456885 10.77803,-49.174855 -0.44907,15.71797 -0.44907,35.702365 -0.44907,49.174855 v 65.1174 h 40.41769 z m 94.71865,154.934555 h 39.5195 c -1.7963,-13.248 -2.2453,-21.3316 -2.2453,-30.31334 v -33.68146 c 0,-7.409915 -0.2247,-14.37078 -0.6737,-20.433485 -1.7963,-21.78068 -14.8199,-38.62141 -52.7676,-38.62141 -30.3133,0 -55.23749,15.94259 -55.46211,44.010425 l 38.17231,-0.22461 c 0.6737,-10.328965 6.0627,-16.391665 15.4935,-16.391665 8.7572,0 13.6971,5.38901 14.3708,11.45171 0.4491,3.81719 0.4491,6.287165 0.4491,8.757145 v 1.796295 h -7.6346 c -40.6423,0 -64.8929,15.717985 -64.8929,41.315845 0,23.12788 18.63701,35.47774 38.3968,35.47774 11.0026,0 21.107,-2.69458 29.6396,-8.08359 l 4.94,-12.57448 z m -20.6581,-24.25064 c -8.0836,0 -13.6971,-4.0418 -13.6971,-11.2271 0,-11.90079 13.0236,-16.61612 31.2115,-15.26891 v 7.85899 c 0,12.57447 -9.4308,18.63702 -17.5144,18.63702 z m 130.8839,-69.608315 h 26.4961 v -25.14878 h -26.4961 v -30.98688 h -40.4176 v 30.98688 h -19.0861 v 25.14878 h 19.0861 v 50.073155 c 0,6.73623 0,12.34986 0.449,19.3107 1.3472,18.41255 10.329,27.61876 40.1933,27.61876 8.5326,0 15.9425,-0.67369 23.8015,-2.0209 v -25.14879 c -19.0861,0.89814 -22.9034,-1.79628 -23.8015,-13.92169 -0.2247,-3.14365 -0.2247,-7.63453 -0.2247,-11.67617 z m 97.7955,-29.19059 c -39.2949,0 -64.4439,24.47511 -64.4439,63.096545 0,38.39679 25.1488,63.0965 64.4439,63.0965 39.2951,0 64.4439,-24.69971 64.4439,-63.0965 0,-38.621435 -25.1488,-63.096545 -64.4439,-63.096545 z m 0,98.798905 c -14.3708,0 -23.1279,-11.90079 -23.1279,-35.70236 0,-24.026065 8.7571,-35.702385 23.1279,-35.702385 14.3707,0 23.1279,11.67617 23.1279,35.702385 0,23.80157 -8.7572,35.70236 -23.1279,35.70236 z m 274.63709,-68.485555 c -2.6945,-16.39166 -16.16709,-30.31335 -40.19329,-30.31335 -11.0026,0 -18.4126,2.46998 -25.8224,6.96085 l -12.5745,16.39166 c -5.1646,-13.248 -17.9635,-23.35251 -38.3968,-23.35251 -11.0027,0 -18.4126,2.46998 -25.8225,6.96085 l -9.6552,15.49351 v -19.3107 h -40.4177 v 119.905885 h 40.4177 v -63.32112 c 0,-20.433485 5.1645,-32.334265 18.1879,-32.334265 10.5535,0 15.9426,6.73622 17.2898,18.18795 0.6735,6.06272 0.8981,12.574485 0.8981,16.391675 v 61.0756 h 40.4177 v -63.32111 c 0,-20.433495 5.1646,-32.334275 18.188,-32.334275 10.5536,0 15.9425,6.73623 17.2898,18.18795 0.6735,6.06272 0.8981,12.574495 0.8981,16.391685 v 61.0756 h 40.41769 v -70.05735 c 0,-9.655295 -0.2246,-16.616145 -1.1228,-22.678845 z m 81.9125,-30.31335 c -39.295,0 -64.4438,24.47511 -64.4438,63.096545 0,38.39679 25.1488,63.0965 64.4438,63.0965 39.2951,0 64.4438,-24.69971 64.4438,-63.0965 0,-38.621435 -25.1488,-63.096545 -64.4438,-63.096545 z m 0,98.798905 c -14.3707,0 -23.128,-11.90079 -23.128,-35.70236 0,-24.026065 8.7573,-35.702385 23.128,-35.702385 14.3708,0 23.1279,11.67617 23.1279,35.702385 0,23.80157 -8.7572,35.70236 -23.1279,35.70236 z"
horiz-adv-x="5836"
id="path2"
style="fill:#ffffff;stroke-width:0.26458332"
inkscape:connector-curvature="0" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 36 KiB

View file

@ -14,9 +14,9 @@
viewBox="0 0 920 680"
version="1.1"
id="svg8"
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)"
sodipodi:docname="large_chrome_tile.svg"
inkscape:export-filename="/home/lukas/git/piwik-injector/docs/large_chrome_tile.png"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
sodipodi:docname="chrome_large_tile.svg"
inkscape:export-filename="/home/lukas/git/piwik-injector/docs/chrome_large_tile.png"
inkscape:export-xdpi="25.4"
inkscape:export-ydpi="25.4">
<defs
@ -29,8 +29,8 @@
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.175"
inkscape:cx="733.94218"
inkscape:cy="908.82082"
inkscape:cx="1048.2279"
inkscape:cy="903.10654"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
@ -60,7 +60,7 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
@ -78,36 +78,6 @@
y="-382.79684"
ry="0"
rx="0" />
<g
id="g1511"
transform="matrix(2.4298922,0,0,2.4306479,-74.575822,-424.61178)"
style="stroke-width:0.41147691">
<path
d="m 251.10711,57.866126 c -3.69041,-1.061508 -7.53992,1.078794 -8.59825,4.780492 l -7.94456,27.788448 -7.94456,-27.788448 c -0.84984,-2.973564 -3.50555,-4.906434 -6.42867,-5.014737 -0.14781,-0.0134 -0.2921,-0.0056 -0.43921,-0.0095 -0.14675,0.0039 -0.29139,-0.0039 -0.43885,0.0095 -2.92312,0.108303 -5.57883,2.041173 -6.42902,5.014737 l -7.9114,27.673125 -7.91139,-27.673125 c -1.05834,-3.701698 -4.90785,-5.842 -8.59826,-4.780492 -3.69076,1.061508 -5.82436,4.922309 -4.76638,8.624006 l 14.46777,50.606678 c 0.83714,2.92736 3.42371,4.84821 6.29285,5.01151 0.17357,0.0163 0.34326,0.008 0.51541,0.0113 0.17216,-0.003 0.34184,0.005 0.51541,-0.0113 2.86914,-0.1633 5.45571,-2.08415 6.2925,-5.01151 l 7.97136,-27.882672 7.97137,27.882672 c 0.8442,2.95272 3.46887,4.87991 6.36799,5.01303 0.15911,0.0147 0.31468,0.007 0.47308,0.0105 0.1584,-0.004 0.31397,0.004 0.47343,-0.0105 2.89877,-0.13312 5.52344,-2.06031 6.36764,-5.01303 l 14.46777,-50.606678 c 1.05833,-3.701697 -1.07562,-7.562498 -4.76603,-8.624006"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.01451599"
id="path916"
inkscape:connector-curvature="0" />
<path
d="m 264.76067,114.48061 c 0,4.26819 3.37467,7.64287 7.64293,7.64287 4.2679,0 7.64293,-3.37468 7.64293,-7.64287 V 65.23389 c 0,-4.267906 -3.37503,-7.642931 -7.64293,-7.642931 -4.26826,0 -7.64293,3.375025 -7.64293,7.642931 v 49.24672"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.01451599"
id="path918"
inkscape:connector-curvature="0" />
<path
d="m 159.68721,114.50432 c 0,4.26818 3.37467,7.64286 7.64293,7.64286 4.26791,0 7.64293,-3.37468 7.64293,-7.64286 V 65.257879 c 0,-4.268258 -3.37502,-7.642931 -7.64293,-7.642931 -4.26826,0 -7.64293,3.374673 -7.64293,7.642931 v 49.246441"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.01451599"
id="path920"
inkscape:connector-curvature="0" />
<path
d="M 320.62903,89.658955 340.41598,69.87186 c 2.83528,-2.835275 2.83528,-7.319081 0,-10.154356 -2.83527,-2.835628 -7.31908,-2.835275 -10.15435,0 l -23.62059,23.62059 V 65.23389 c 0,-4.267906 -3.37468,-7.642931 -7.64258,-7.642931 -4.26826,0 -7.64293,3.375025 -7.64293,7.642931 v 49.24672 c 0,4.26819 3.37467,7.64287 7.64293,7.64287 4.2679,0 7.64258,-3.37468 7.64258,-7.64287 v -10.83387 l 3.83328,-3.832864 19.55589,19.899554 c 2.81022,2.85956 7.29403,2.8987 10.154,0.0882 2.85997,-2.81064 2.89877,-7.29409 0.0882,-10.15406 L 320.62903,89.658955"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.01451599"
id="path922"
inkscape:connector-curvature="0" />
<path
d="m 126.60364,89.843634 -4.2e-4,-0.0026 H 112.74346 V 71.471707 h 13.59034 c 5.07711,0 9.19272,4.115859 9.19272,9.192684 0,4.986162 -3.97189,9.035239 -8.92288,9.179243 z m 24.40735,-9.288957 c 0,-12.32147 -9.74725,-22.340359 -21.94771,-22.832837 l 0.009,-0.04727 h -23.9721 c -4.26818,0 -7.643,3.375025 -7.643,7.642931 v 49.079189 c 0,4.26819 3.37482,7.64328 7.643,7.64328 4.26822,0 7.6429,-3.37509 7.6429,-7.64328 v -10.95735 h 16.3292 l -0.009,-0.0518 c 12.20046,-0.49276 21.94771,-10.51136 21.94771,-22.832831"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.01451599"
id="path924"
inkscape:connector-curvature="0" />
</g>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:103.06502533px;line-height:64.41564178px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458335px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
@ -120,5 +90,11 @@
x="51.593433"
y="134.75923"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'TeX Gyre Heros';-inkscape-font-specification:'TeX Gyre Heros Bold';fill:#ffffff;stroke-width:0.26458335px">Browser Injector</tspan></text>
<path
d="m 246.09496,-278.87858 h -48.15655 l -20.56323,90.51335 -20.56325,-90.51335 H 107.4251 v 121.27024 h 31.6357 v -50.96863 c 0,-10.54531 0,-26.18735 -0.35151,-38.49011 1.93331,12.30276 5.4484,27.94493 8.26049,38.49011 l 13.53305,50.96863 h 32.5145 l 13.35725,-50.96863 c 2.8121,-10.72099 6.32719,-26.18735 8.43617,-38.49011 -0.35149,12.30276 -0.35149,27.94493 -0.35149,38.49011 v 50.96863 h 31.6357 z m 74.1381,121.27024 h 30.93266 c -1.40598,-10.36946 -1.75742,-16.69665 -1.75742,-23.72683 v -26.36313 c 0,-5.79988 -0.17589,-11.24829 -0.52733,-15.99368 -1.406,-17.04815 -11.59981,-30.22971 -41.30221,-30.22971 -23.7268,0 -43.23544,12.47857 -43.41125,34.44779 l 29.8782,-0.1758 c 0.52731,-8.08468 4.74539,-12.83007 12.12705,-12.83007 6.85443,0 10.72099,4.21808 11.24831,8.96347 0.35152,2.98779 0.35152,4.92109 0.35152,6.85439 v 1.40599 h -5.97575 c -31.81151,0 -50.79292,12.30277 -50.79292,32.33871 0,18.10263 14.58755,27.7691 30.05391,27.7691 8.61195,0 16.52085,-2.10909 23.19948,-6.32718 l 3.86664,-9.84228 z m -16.16949,-18.98144 c -6.32719,0 -10.72098,-3.16359 -10.72098,-8.78767 0,-9.31497 10.19382,-13.00575 24.42984,-11.95126 v 6.15138 c 0,9.84228 -7.38167,14.58755 -13.70886,14.58755 z m 102.44535,-54.48376 h 20.739 v -19.68443 h -20.739 V -275.012 h -31.63565 v 24.25403 h -14.93904 v 19.68443 h 14.93904 v 39.19322 c 0,5.27257 0,9.66647 0.35145,15.11485 1.05447,14.41186 8.08471,21.61773 31.46006,21.61773 6.67863,0 12.4785,-0.52731 18.62988,-1.58179 v -19.68444 c -14.93905,0.70299 -17.92692,-1.40599 -18.62988,-10.89678 -0.17586,-2.46059 -0.17586,-5.9757 -0.17586,-9.13917 z m 76.54638,-22.84804 c -30.75685,0 -50.44147,19.15714 -50.44147,49.38688 0,30.0539 19.68446,49.38684 50.44147,49.38684 30.75705,0 50.44148,-19.33294 50.44148,-49.38684 0,-30.22974 -19.68443,-49.38688 -50.44148,-49.38688 z m 0,77.3318 c -11.24829,0 -18.10264,-9.31498 -18.10264,-27.94492 0,-18.80566 6.85435,-27.94494 18.10264,-27.94494 11.24823,0 18.10267,9.13916 18.10267,27.94494 0,18.62994 -6.85444,27.94492 -18.10267,27.94492 z m 214.96372,-53.60496 c -2.10903,-12.83006 -12.65429,-23.72684 -31.46005,-23.72684 -8.61196,0 -14.41191,1.9333 -20.21169,5.44839 l -9.84231,12.83007 c -4.04241,-10.36946 -14.06037,-18.27846 -30.05392,-18.27846 -8.61201,0 -14.41188,1.9333 -20.21175,5.44839 l -7.55731,12.12707 v -15.11485 h -31.6357 v 93.85263 h 31.6357 v -49.56265 c 0,-15.99369 4.04236,-25.30865 14.23602,-25.30865 8.26042,0 12.47858,5.27256 13.53304,14.23605 0.52719,4.74541 0.70297,9.8423 0.70297,12.83008 v 47.80504 h 31.63572 v -49.56264 c 0,-15.99369 4.04243,-25.30866 14.23609,-25.30866 8.2605,0 12.47849,5.27258 13.53306,14.23606 0.52716,4.7454 0.70296,9.84229 0.70296,12.83009 v 47.80504 h 31.63569 v -54.83523 c 0,-7.55739 -0.17578,-13.00578 -0.87883,-17.75117 z m 64.11449,-23.72684 c -30.75696,0 -50.44141,19.15714 -50.44141,49.38688 0,30.0539 19.68445,49.38684 50.44141,49.38684 30.75703,0 50.44139,-19.33294 50.44139,-49.38684 0,-30.22974 -19.68445,-49.38688 -50.44139,-49.38688 z m 0,77.3318 c -11.24823,0 -18.10274,-9.31498 -18.10274,-27.94492 0,-18.80566 6.85451,-27.94494 18.10274,-27.94494 11.24829,0 18.10264,9.13916 18.10264,27.94494 0,18.62994 -6.85443,27.94492 -18.10264,27.94492 z"
horiz-adv-x="5836"
id="path2"
style="fill:#ffffff;stroke-width:0.26458332"
inkscape:connector-curvature="0" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -14,9 +14,9 @@
viewBox="0 0 440 280"
version="1.1"
id="svg8"
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)"
sodipodi:docname="small_chrome_tile.svg"
inkscape:export-filename="/home/lukas/git/piwik-injector/docs/small_chrome_tile.png"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
sodipodi:docname="chrome_small_tile.svg"
inkscape:export-filename="/home/lukas/git/piwik-injector/docs/chrome_small_tile.png"
inkscape:export-xdpi="25.4"
inkscape:export-ydpi="25.4">
<defs
@ -29,8 +29,8 @@
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.35"
inkscape:cx="758.38173"
inkscape:cy="498.71179"
inkscape:cx="1.2388686"
inkscape:cy="495.85465"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
@ -60,7 +60,7 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
@ -78,34 +78,6 @@
y="17.203205"
ry="0"
rx="0" />
<g
id="g1511">
<path
d="m 251.10711,57.866126 c -3.69041,-1.061508 -7.53992,1.078794 -8.59825,4.780492 l -7.94456,27.788448 -7.94456,-27.788448 c -0.84984,-2.973564 -3.50555,-4.906434 -6.42867,-5.014737 -0.14781,-0.0134 -0.2921,-0.0056 -0.43921,-0.0095 -0.14675,0.0039 -0.29139,-0.0039 -0.43885,0.0095 -2.92312,0.108303 -5.57883,2.041173 -6.42902,5.014737 l -7.9114,27.673125 -7.91139,-27.673125 c -1.05834,-3.701698 -4.90785,-5.842 -8.59826,-4.780492 -3.69076,1.061508 -5.82436,4.922309 -4.76638,8.624006 l 14.46777,50.606678 c 0.83714,2.92736 3.42371,4.84821 6.29285,5.01151 0.17357,0.0163 0.34326,0.008 0.51541,0.0113 0.17216,-0.003 0.34184,0.005 0.51541,-0.0113 2.86914,-0.1633 5.45571,-2.08415 6.2925,-5.01151 l 7.97136,-27.882672 7.97137,27.882672 c 0.8442,2.95272 3.46887,4.87991 6.36799,5.01303 0.15911,0.0147 0.31468,0.007 0.47308,0.0105 0.1584,-0.004 0.31397,0.004 0.47343,-0.0105 2.89877,-0.13312 5.52344,-2.06031 6.36764,-5.01303 l 14.46777,-50.606678 c 1.05833,-3.701697 -1.07562,-7.562498 -4.76603,-8.624006"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.03527778"
id="path916"
inkscape:connector-curvature="0" />
<path
d="m 264.76067,114.48061 c 0,4.26819 3.37467,7.64287 7.64293,7.64287 4.2679,0 7.64293,-3.37468 7.64293,-7.64287 V 65.23389 c 0,-4.267906 -3.37503,-7.642931 -7.64293,-7.642931 -4.26826,0 -7.64293,3.375025 -7.64293,7.642931 v 49.24672"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.03527778"
id="path918"
inkscape:connector-curvature="0" />
<path
d="m 159.68721,114.50432 c 0,4.26818 3.37467,7.64286 7.64293,7.64286 4.26791,0 7.64293,-3.37468 7.64293,-7.64286 V 65.257879 c 0,-4.268258 -3.37502,-7.642931 -7.64293,-7.642931 -4.26826,0 -7.64293,3.374673 -7.64293,7.642931 v 49.246441"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.03527778"
id="path920"
inkscape:connector-curvature="0" />
<path
d="M 320.62903,89.658955 340.41598,69.87186 c 2.83528,-2.835275 2.83528,-7.319081 0,-10.154356 -2.83527,-2.835628 -7.31908,-2.835275 -10.15435,0 l -23.62059,23.62059 V 65.23389 c 0,-4.267906 -3.37468,-7.642931 -7.64258,-7.642931 -4.26826,0 -7.64293,3.375025 -7.64293,7.642931 v 49.24672 c 0,4.26819 3.37467,7.64287 7.64293,7.64287 4.2679,0 7.64258,-3.37468 7.64258,-7.64287 v -10.83387 l 3.83328,-3.832864 19.55589,19.899554 c 2.81022,2.85956 7.29403,2.8987 10.154,0.0882 2.85997,-2.81064 2.89877,-7.29409 0.0882,-10.15406 L 320.62903,89.658955"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.03527778"
id="path922"
inkscape:connector-curvature="0" />
<path
d="m 126.60364,89.843634 -4.2e-4,-0.0026 H 112.74346 V 71.471707 h 13.59034 c 5.07711,0 9.19272,4.115859 9.19272,9.192684 0,4.986162 -3.97189,9.035239 -8.92288,9.179243 z m 24.40735,-9.288957 c 0,-12.32147 -9.74725,-22.340359 -21.94771,-22.832837 l 0.009,-0.04727 h -23.9721 c -4.26818,0 -7.643,3.375025 -7.643,7.642931 v 49.079189 c 0,4.26819 3.37482,7.64328 7.643,7.64328 4.26822,0 7.6429,-3.37509 7.6429,-7.64328 v -10.95735 h 16.3292 l -0.009,-0.0518 c 12.20046,-0.49276 21.94771,-10.51136 21.94771,-22.832831"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.03527778"
id="path924"
inkscape:connector-curvature="0" />
</g>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:42.40887833px;line-height:26.50554848px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.26458335px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
@ -117,5 +89,11 @@
x="51.920689"
y="218.16727"
style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-family:'TeX Gyre Heros';-inkscape-font-specification:'TeX Gyre Heros Bold';fill:#ffffff;stroke-width:0.26458335px">Browser Injector</tspan></text>
<path
d="m 142.74835,67.514548 h -17.3917 l -7.4264,32.688832 -7.4264,-32.688832 H 92.66783 v 43.796662 h 11.42521 V 92.903918 c 0,-3.80843 0,-9.45754 -0.12695,-13.90068 0.69822,4.44314 1.96769,10.0923 2.98327,13.90068 l 4.88745,18.407292 h 11.7426 l 4.82395,-18.407292 c 1.01559,-3.87188 2.28506,-9.45754 3.04672,-13.90068 -0.12694,4.44314 -0.12694,10.0923 -0.12694,13.90068 v 18.407292 h 11.42521 z m 26.77492,43.796662 h 11.17131 c -0.50777,-3.74492 -0.63469,-6.02998 -0.63469,-8.56893 v -9.521022 c 0,-2.09462 -0.0635,-4.06232 -0.19045,-5.77611 -0.50778,-6.15693 -4.18925,-10.91744 -14.91626,-10.91744 -8.56892,0 -15.61445,4.50663 -15.67794,12.44079 l 10.79049,-0.0635 c 0.19044,-2.91978 1.7138,-4.63357 4.37968,-4.63357 2.47546,0 3.87187,1.52335 4.06231,3.23715 0.12695,1.07903 0.12695,1.77725 0.12695,2.47546 v 0.50776 h -2.15813 c -11.4887,0 -18.34383,4.44314 -18.34383,11.679112 0,6.53775 5.26828,10.02879 10.85395,10.02879 3.1102,0 5.96649,-0.76169 8.37847,-2.28506 l 1.39643,-3.55453 z m -5.8396,-6.85513 c -2.28506,0 -3.87187,-1.14254 -3.87187,-3.17367 0,-3.364092 3.68149,-4.697012 8.82281,-4.316182 v 2.22156 c 0,3.554542 -2.66588,5.268292 -4.95094,5.268292 z m 36.99808,-19.676772 h 7.48987 v -7.10902 h -7.48987 v -8.75933 h -11.4252 v 8.75933 h -5.39523 v 7.10902 h 5.39523 v 14.1546 c 0,1.904182 0,3.491032 0.12693,5.458712 0.38082,5.20484 2.91978,7.80723 11.36177,7.80723 2.41198,0 4.50661,-0.19043 6.72817,-0.57126 v -7.10902 c -5.39523,0.25388 -6.47429,-0.50777 -6.72817,-3.93537 -0.0635,-0.888632 -0.0635,-2.158122 -0.0635,-3.300602 z m 27.64466,-8.25156 c -11.10782,0 -18.2169,6.91858 -18.2169,17.83604 0,10.853952 7.10903,17.836022 18.2169,17.836022 11.10789,0 18.2169,-6.98207 18.2169,-17.836022 0,-10.91746 -7.10901,-17.83604 -18.2169,-17.83604 z m 0,27.928332 c -4.06231,0 -6.53776,-3.3641 -6.53776,-10.092292 0,-6.79165 2.47545,-10.0923 6.53776,-10.0923 4.06229,0 6.53776,3.3006 6.53776,10.0923 0,6.728192 -2.47547,10.092292 -6.53776,10.092292 z M 305.9604,85.096678 c -0.76167,-4.63357 -4.57008,-8.56893 -11.36177,-8.56893 -3.1102,0 -5.20485,0.69821 -7.29943,1.96768 l -3.55455,4.63357 c -1.45991,-3.74492 -5.0779,-6.60125 -10.85395,-6.60125 -3.11023,0 -5.20484,0.69821 -7.29946,1.96768 l -2.72932,4.37969 v -5.45872 h -11.42521 v 33.894812 h 11.42521 V 93.411688 c 0,-5.77611 1.45989,-9.1402 5.14133,-9.1402 2.98324,0 4.50663,1.90418 4.88745,5.14134 0.19039,1.71381 0.25387,3.55454 0.25387,4.63358 v 17.264752 h 11.42522 V 93.411648 c 0,-5.77611 1.45993,-9.14021 5.14136,-9.14021 2.98327,0 4.50659,1.9042 4.88745,5.14135 0.19038,1.7138 0.25387,3.55454 0.25387,4.63358 v 17.264752 h 11.4252 V 91.507418 c 0,-2.72935 -0.0635,-4.69703 -0.31739,-6.41083 z m 23.15491,-8.56893 c -11.10786,0 -18.21689,6.91858 -18.21689,17.83604 0,10.853952 7.10903,17.836022 18.21689,17.836022 11.10787,0 18.21686,-6.98207 18.21686,-17.836022 0,-10.91746 -7.10901,-17.83604 -18.21686,-17.83604 z m 0,27.928332 c -4.0623,0 -6.5378,-3.3641 -6.5378,-10.092292 0,-6.79165 2.4755,-10.0923 6.5378,-10.0923 4.0623,0 6.53775,3.3006 6.53775,10.0923 0,6.728192 -2.47548,10.092292 -6.53775,10.092292 z"
horiz-adv-x="5836"
id="path2"
style="fill:#ffffff;stroke-width:0.26458332"
inkscape:connector-curvature="0" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

View file

@ -15,8 +15,8 @@
width="300"
height="300"
viewBox="0 0 300 300"
sodipodi:docname="logo.svg"
inkscape:version="0.92.2 (5c3e80d, 2017-08-06)"
sodipodi:docname="icon.svg"
inkscape:version="0.92.3 (2405546, 2018-03-11)"
inkscape:export-filename="/home/lukas/git/piwik-injector/img/icon256.png"
inkscape:export-xdpi="81.919998"
inkscape:export-ydpi="81.919998"><metadata
@ -40,9 +40,9 @@
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:zoom="0.38756065"
inkscape:cx="470.89404"
inkscape:cy="121.99334"
inkscape:zoom="0.7751213"
inkscape:cx="40.323761"
inkscape:cy="-167.92817"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
@ -51,14 +51,16 @@
id="g10"
inkscape:groupmode="layer"
inkscape:label="ink_ext_XXXXXX"
transform="matrix(1.3333333,0,0,-1.3333333,0,300.00001)"><g
id="g4525"
transform="translate(2.6355028,21.03701)"><path
d="M 176.399,21.6648 C 176.399,9.56602 185.965,0 198.064,0 c 12.098,0 21.665,9.56602 21.665,21.6648 V 161.261 c 0,12.099 -9.567,21.665 -21.665,21.665 -12.099,0 -21.665,-9.566 -21.665,-21.665 V 21.6648"
style="fill:#d9292a;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.1"
id="path18"
inkscape:connector-curvature="0" /><path
d="m 82.6188,91.5691 -0.0012,0.0075 H 43.3301 v 52.0704 h 38.5238 c 14.3918,0 26.0581,-11.667 26.0581,-26.058 0,-14.134 -11.2589,-25.6117 -25.2932,-26.0199 z M 151.805,117.9 c 0,34.927 -27.63,63.327 -62.214,64.723 l 0.0266,0.134 H 21.6652 C 9.56641,182.757 0,173.19 0,161.092 V 21.9699 C 0,9.87109 9.56641,0.303906 21.6652,0.303906 c 12.0989,0 21.6649,9.567184 21.6649,21.665994 V 53.0301 H 89.6176 L 89.591,53.177 c 34.584,1.3968 62.214,29.796 62.214,64.723"
style="fill:#d9292a;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.1"
id="path22"
inkscape:connector-curvature="0" /></g></g></svg>
transform="matrix(1.3333333,0,0,-1.3333333,0,300.00001)"><path
d="M 157.70487,180.02685 H 104.0749 L 81.17447,79.225878 58.274034,180.02685 H 3.2739374 V 44.973182 H 38.505314 v 56.761678 c 0,11.74383 0,29.16374 -0.391448,42.86481 2.153032,-13.70107 6.067644,-31.12111 9.199361,-42.86481 L 62.384438,44.973182 h 36.210065 l 14.875417,56.761678 c 3.13172,11.93949 7.04634,29.16374 9.39502,42.86481 -0.39144,-13.70107 -0.39144,-31.12111 -0.39144,-42.86481 V 44.973182 h 35.23137 z"
horiz-adv-x="5836"
id="path2"
style="fill:#d9292a;fill-opacity:1;stroke-width:0.75"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccccsccccccsccc" /><path
d="m 220.56403,179.84607 -35.07597,0.36153 -0.15541,-135.415172 h 35.23138 z"
horiz-adv-x="5836"
id="path2-4"
style="fill:#d9292a;fill-opacity:1;stroke-width:0.75"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" /></g></svg>

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5 KiB

After

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 9.1 KiB

View file

@ -12,8 +12,8 @@ document.addEventListener('DOMContentLoaded', function() {
resetBtn: document.getElementById("reset"),
draftRemoveLink: document.getElementById("draft-remove"),
error: document.getElementById("error"),
piwikForm: document.getElementById("piwik-form"),
piwikURL: document.getElementById("piwik-url"),
matomoForm: document.getElementById("matomo-form"),
matomoURL: document.getElementById("matomo-url"),
siteID: document.getElementById("site-id"),
expertMode: document.getElementById("expert-mode")
},
@ -23,12 +23,12 @@ document.addEventListener('DOMContentLoaded', function() {
var translateKey = id.replace(/-/g, "_");
document.getElementById(id).innerText = chrome.i18n.getMessage(translateKey);
});
var translatableTitles = ["host", "goto-host", "save", "reset", "draft-remove", "piwik-url", "site-id"];
var translatableTitles = ["host", "goto-host", "save", "reset", "draft-remove", "matomo-url", "site-id"];
translatableTitles.forEach(function(id) {
var translateKey = id.replace("-", "_") + "_title";
document.getElementById(id).setAttribute('title', chrome.i18n.getMessage(translateKey));
});
popup.el.piwikURL.setAttribute("placeholder", chrome.i18n.getMessage("piwik_url_placeholder"));
popup.el.matomoURL.setAttribute("placeholder", chrome.i18n.getMessage("matomo_url_placeholder"));
popup.el.siteID.setAttribute("placeholder", chrome.i18n.getMessage("site_id_placeholder"));
document.title = chrome.i18n.getMessage("extension_name");
},
@ -114,11 +114,11 @@ document.addEventListener('DOMContentLoaded', function() {
// Merge host's data to defaults
popup.data = Object.assign(popup.data, response);
popup.piwik.loadExpertMode();
popup.matomo.loadExpertMode();
console.warn("HALLO");
if (popup.data.piwik) {
popup.el.piwikURL.value = popup.data.piwik.piwikURL;
popup.el.siteID.value = popup.data.piwik.siteID;
if (popup.data.matomo) {
popup.el.matomoURL.value = popup.data.matomo.matomoURL;
popup.el.siteID.value = popup.data.matomo.siteID;
}
popup.data.originalSource = popup.data.source;
@ -135,32 +135,32 @@ document.addEventListener('DOMContentLoaded', function() {
}
},
piwik: {
matomo: {
defaultTrackingCode: "var _paq = _paq || [];\n" +
"/* tracker methods like \"setCustomDimension\" should be called before \"trackPageView\" */\n" +
"_paq.push(['trackPageView']);\n" +
"_paq.push(['enableLinkTracking']);\n" +
"(function() {\n" +
" var u=\"{{PIWIKURL}}\";\n" +
" _paq.push(['setTrackerUrl', u+'piwik.php']);\n" +
" var u=\"{{MATOMOURL}}\";\n" +
" _paq.push(['setTrackerUrl', u+'matomo.php']);\n" +
" _paq.push(['setSiteId', '{{SITEID}}']);\n" +
" var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];\n" +
" g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);\n" +
" g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);\n" +
"})();",
handleTrackingCode: function() {
var piwikURL = encodeURI(popup.el.piwikURL.value);
if (!piwikURL.endsWith("/")) {
piwikURL += "/";
var matomoURL = encodeURI(popup.el.matomoURL.value);
if (!matomoURL.endsWith("/")) {
matomoURL += "/";
}
var siteID = parseInt(popup.el.siteID.value, 10);
if (!siteID || !piwikURL) {
if (!siteID || !matomoURL) {
return false;
}
var js = popup.piwik.defaultTrackingCode;
js = js.replace("{{PIWIKURL}}", piwikURL);
var js = popup.matomo.defaultTrackingCode;
js = js.replace("{{MATOMOURL}}", matomoURL);
js = js.replace("{{SITEID}}", String(siteID));
popup.editor.apply(js);
popup.data.piwik = {piwikURL: piwikURL, siteID: siteID};
popup.data.matomo = {matomoURL: matomoURL, siteID: siteID};
},
setExpertMode: function(expertMode, onLoad) {
popup.editor.editorInstance.setOptions({
@ -169,7 +169,7 @@ document.addEventListener('DOMContentLoaded', function() {
highlightGutterLine: expertMode
});
popup.editor.editorInstance.container.style.backgroundColor = expertMode ? "white" : "#eaeded";
popup.el.piwikForm.querySelectorAll("input").forEach(function(input) {
popup.el.matomoForm.querySelectorAll("input").forEach(function(input) {
input.disabled = expertMode;
});
popup.el.expertMode.checked = expertMode;
@ -182,7 +182,7 @@ document.addEventListener('DOMContentLoaded', function() {
},
loadExpertMode: function() {
var expertMode = (typeof popup.data.expertMode === "undefined") ? false : popup.data.expertMode;
popup.piwik.setExpertMode(expertMode);
popup.matomo.setExpertMode(expertMode);
}
},
applyData: function(data, notDraft) {
@ -316,8 +316,8 @@ document.addEventListener('DOMContentLoaded', function() {
}, popup.apiclb.onSelectedTab);
popup.el.piwikForm.querySelectorAll("input").forEach(function(input) {
input.addEventListener("change", popup.piwik.handleTrackingCode);
popup.el.matomoForm.querySelectorAll("input").forEach(function(input) {
input.addEventListener("change", popup.matomo.handleTrackingCode);
});
/**
@ -438,7 +438,7 @@ document.addEventListener('DOMContentLoaded', function() {
popup.el.expertMode.addEventListener("change", function(event) {
var enabled = event.target.checked;
popup.piwik.setExpertMode(enabled);
popup.matomo.setExpertMode(enabled);
});
}, false);

View file

@ -1,8 +1,8 @@
{
"manifest_version": 2,
"name": "__MSG_extension_name__",
"short_name": "piwik-injector",
"version": "3.2.4",
"short_name": "matomo-injector",
"version": "3.3.0",
"author": "Lukas Winkler, xcv58, hromadadan",
"description": "__MSG_extension_description__",
"icons": {

View file

@ -1,5 +1,5 @@
{
"name": "piwik-injector",
"name": "matomo-injector",
"version": "1.0.0",
"description": "",
"main": "index.js",

View file

@ -28,8 +28,8 @@
</div>
</div><!-- .top -->
</div>
<div class="pure-form" id="piwik-form">
<input id="piwik-url" title="">
<div class="pure-form" id="matomo-form">
<input id="matomo-url" title="">
<input type="number" id="site-id" min="0" title="">
</div>
<div class="pure-form">