<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=NA-***"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'NA-***');
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'NA-***', 'auto');
</script>
<VirtualHost *:80>
ServerAdmin mail@gmail.com
DocumentRoot "/home/user/public/admin/www"
ServerName mysite.com
ServerAlias www.mysite.com *mysite.com
ErrorLog "/home/user/public/admin/logs/error_log"
CustomLog "/home/user/public/admin/logs/access_log" common
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/index.html$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.(css|gif|ico|jpg|js|png|swf|txt|svg|woff|ttf|eot)$
RewriteRule . index.html [L]
<Directory "/home/user/public/admin/www">
Require all granted
</Directory>
</VirtualHost>
...wp/posts?filter[post_per_page]=3&filter[cat]=1
$.ajax({
url: '/aut/actions.php',
headers: {
'application':'tickets',
'autorization':'!ЗНАЧЕНИЕ data.Token!'
'Content-Type':'application/json'
},
method: 'POST',
dataType: 'json',
data: '{"action":"trip", "date":"2017-08-28 14:43:12", "id_direct":"1"}',
success: function(data){ }
});
все отслеживает, без "танцев с бубном", но появилась другая проблема :)