Commit Piwik Tracking ID
This commit is contained in:
parent
a6f1c31537
commit
4b1fdf138e
@ -189,6 +189,14 @@ This will embed the piwik tracking code.
|
||||
}
|
||||
```
|
||||
|
||||
You can Also give a specific Piwik ID as well.
|
||||
|
||||
```json
|
||||
{
|
||||
"piwik_analytics_id": "43"
|
||||
}
|
||||
```
|
||||
|
||||
###Ignore:
|
||||
Set custom files and entire folders to ignore within your `/docs` folder. For files make sure to include the file extension in the name. For both files and folders, names are case-sensitive.
|
||||
|
||||
|
@ -189,6 +189,14 @@ This will embed the piwik tracking code.
|
||||
}
|
||||
```
|
||||
|
||||
You can Also give a specific Piwik ID as well.
|
||||
|
||||
```json
|
||||
{
|
||||
"piwik_analytics_id": "43"
|
||||
}
|
||||
```
|
||||
|
||||
###Ignore:
|
||||
Set custom files and entire folders to ignore within your `/docs` folder. For files make sure to include the file extension in the name. For both files and folders, names are case-sensitive.
|
||||
|
||||
|
@ -7,7 +7,8 @@
|
||||
"date_modified": true,
|
||||
"repo": "justinwalsh/daux.io",
|
||||
"twitter": ["justin_walsh", "todaymade"],
|
||||
"google_analytics": "UA-12653604-10",
|
||||
"piwik_analytics": "test.com",
|
||||
"piwik_analytics_id": "43",
|
||||
"links": {
|
||||
"Download": "https://github.com/justinwalsh/daux.io/archive/master.zip",
|
||||
"GitHub Repo": "https://github.com/justinwalsh/daux.io",
|
||||
|
@ -347,7 +347,7 @@ if ($homepage && $homepage_url !== '/') {
|
||||
(function() {
|
||||
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://<?php echo $options['piwik_analytics'];?>/";
|
||||
_paq.push(["setTrackerUrl", u+"piwik.php"]);
|
||||
_paq.push(["setSiteId", "1"]);
|
||||
_paq.push(["setSiteId", <?php echo $options['piwik_analytics_id'];?>]);
|
||||
var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript";
|
||||
g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s);
|
||||
})();
|
||||
|
@ -44,6 +44,7 @@ function get_options() {
|
||||
'clean_urls' => true,
|
||||
'google_analytics' => false,
|
||||
'piwik_analytics' => false,
|
||||
'piwik_analytics_id' => 1,
|
||||
'ignore' => array(),
|
||||
'languages' => array()
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user