DLE hacks
Changes in DLE templates in the admin panel for 10.2-10.3
26-12-2022, 12:28
I present to your attention the DLE Visitators Diagram. This module is for site traffic analysis
Module Descriptions:
1) In the Admin Panel you will have a diagram with Visits, Views, Visitors to your site
2) Visits, Views, Visitors for today
3) Visits, Views, Visitors for the past week
Installation
0) Upload everything from the upload folder on the server
1) Create an account on this site https://metrika .yandex.ru
2) Add a counter https://metrika .yandex.ru/add
DLE Visitators Diagram
After the creation of the counter, you will have its ID
, go to \engine\inc\statsis.php
find
define('YANDEX_ID', '32323239');
jam on
define('YANDEX_ID', 'YOUR ID');
3) Add in the head tag
<script src="//mc.yandex.ru/metrika/watch.js" type="text/jаvascript"></script>
<script type="text/jаvascript">try {var yaCounter ID of your counter = new Ya.Metrika({id:ID of your counter});}catch(e){}</script>
4) Create an API https://oauth .yandex.ru/client/new
DLE Visitators Diagram
5) After the creation, you will receive a passcode
Rights:
Getting statistics, reading the parameters of your own and trusted counters
ID: 7edcd5fcd0ae4f4fb7b4015f0908cdd1
Password: 4f775f7129634d528c3541d0a9aa408a
Callback URL: http://sitename.ru
Open the link in the browser
https://oauth.yandex.ru/authorize?response_type=token&client_id=Your API ID
Then click allow
After that we will get
Such a link
http://sitename.ru/#access_token=8529b12cf382471a9a7392b7902d2ecb&token_type=bearer&expires_in=31536000
Copy this code and open it again \engine\inc\statsis.php
and we find
define('YANDEX_TOKEN', '19f150dasdasdsa09d6c79ec3c9');
jamming on
define('YANDEX_TOKEN', 'YOUR CODE');
Creating an sql query
INSERT INTO `dle_admin_sections' (`id`, `name', `title', `descr`, `icon`, `allow_groups`) VALUES (NULL, 'statsis', 'Site statistics', 'Site statistics', 'stats.png', '1,2,3')
If your site has not been registered with yandex metrika before, activation will take one day
26-12-2022, 12:28
26-12-2022, 12:56
26-12-2022, 13:38
There are no comments
Information
Users of Visitor are not allowed to comment this publication.