Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Statistics about a website's traffic

Statistics about a website's traffic 1 year 1 month ago #92914

  • vipgroup
  • vipgroup's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 17
  • Karma: 0
Dear colleagues!
Do you know, is it possible to use in LS any detailed statistics about a website's traffic, like Google Analytic, but I'd like to use another service - Yandex Metrika - it is a very advanced statistics service. I have copied the script of statistics service in a startpage.pstpl, but the copied script doesn't work correctly. Do you have any ideas, how and where should I copy the script of site statistics service?
BR, Andrew
The administrator has disabled public write access.

Statistics about a website's traffic 1 year 1 month ago #92946

  • helper
  • helper's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 126
  • Thank you received: 18
  • Karma: 0
Most good metrics/analytic scripts need to be on every page and usually towards the end of the page. Try putting your script in endpage.pstpl.
The administrator has disabled public write access.
The following user(s) said Thank You: vipgroup

Statistics about a website's traffic 1 year 1 month ago #92947

  • vipgroup
  • vipgroup's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 17
  • Karma: 0
Thank you for the idea, I tried to put the script in endpage.pstpl, but the result is the same - the statistics service see the script, but the script doesn't work properly. It seems, that the reason is the .pstpl format of the file, due to information sending of statistics script is impossible - "Counter code is installed but no data is being received".
Any ideas else?
Last Edit: 1 year 1 month ago by vipgroup.
The administrator has disabled public write access.

Statistics about a website's traffic 1 year 1 month ago #92949

  • helper
  • helper's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 126
  • Thank you received: 18
  • Karma: 0
Can you attach the endpage.pstpl so that I can see how you are inserting?
The administrator has disabled public write access.

Statistics about a website's traffic 1 year 1 month ago #92950

  • vipgroup
  • vipgroup's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 17
  • Karma: 0
Will be attached.
I use RedandGrey template.
Last Edit: 1 year 1 month ago by vipgroup.
The administrator has disabled public write access.

Statistics about a website's traffic 1 year 1 month ago #92954

  • helper
  • helper's Avatar
  • OFFLINE
  • Expert Lime
  • Posts: 126
  • Thank you received: 18
  • Karma: 0
This is totally crazy... BUT... I have workaround. I signed up for Yandex and created my own and experienced the same mess that you were going through - something in LimeSurvey is creating a mess out of the JavaScript that Yandex provides. Some of the things that I unsuccessfully tried included turning OFF the XSS filter, putting the script in the description, inside a question, etc. Nothing that I tried from the front-end works.

My workaround is to create a new PHP file (mine is located at .../application/unc/yandex.php) then do an include in the .../application/helpers/common_helper.php at about line 7839. I added the line with "Yii::import('application.unc.yandex.php');" just before the return of the function.
function getFooter()
{
    global $embedded;
 
    if ( !$embedded )
    {
        Yii::import('application.unc.yandex.php');
        return "\n\n\t</body>\n</html>\n";
    }
 
    global $embedded_footerfunc;
 
    if ( function_exists( $embedded_footerfunc ) )
        return $embedded_footerfunc();
}
The administrator has disabled public write access.
The following user(s) said Thank You: vipgroup

Statistics about a website's traffic 1 year 1 month ago #92961

  • vipgroup
  • vipgroup's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 17
  • Karma: 0
Dear Helper!
Thank you very much for the help, but I regret to say, that I did not succeed. I created a new PHP file yandex.php, where I copied Yandex counter code, it located also at /application/unc/. After I added the line with "Yii::import('application.unc.yandex.php');" in the function getFooter() in the common_helper.php, as you showed. And nothing - Yandex answer, that "counter code is not installed". I viewed the page source of any survey, there is no any Yandex counter code in survey :(
Аny other ideas?
The administrator has disabled public write access.

Statistics about a website's traffic 1 year 1 month ago #92967

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 5830
  • Thank you received: 711
  • Karma: 220
Can you prvide the script for copy/pasting.

Think there are some {} issue.

For example, for piwik (a really good stats tools, and free).
Need some modification:

The line
} catch( err ) {}
was modified to
} catch( err ) {  }
Last Edit: 1 year 1 month ago by DenisChenu.
The administrator has disabled public write access.

Statistics about a website's traffic 1 year 1 month ago #93002

  • vipgroup
  • vipgroup's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 17
  • Karma: 0
Dear DenisChenu!
Thank you for the idea, but I'd like to use exactly Yandex Metrika because it has such possibility, like webwisor - it shows all movements of a visitors (respondents in our case) like a movie on a web page. And if any respondent say, that something is working wrong in the survey, I can check all respondent's movements and conclude, what is the main reason of error. Usually there are some respondents' errors.
The administrator has disabled public write access.

Statistics about a website's traffic 1 year 1 month ago #93004

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 5830
  • Thank you received: 711
  • Karma: 220
DenisChenu wrote:
Can you provide the script for copy/pasting.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.310 seconds
Donation Image