Try Now
More in this section

Forums / General Discussions / statistic script in master pages

statistic script in master pages

2 posts, 0 answered
  1. Knut
    Knut avatar
    36 posts
    12 Apr 2009
    04 Sep 2009
    Link to this post

    Im using this scripts in the body section in the masterpage... This is our own stat solution.

    the problem is the wm_page_name
    I want to have the title of the page in sitefinity.....

    document.write does not work..... any ideas someone=?

    Perhaps its best to do this serversides - without javascript??

    Im happy to get any suggestions. Kind of new to asp.net and sitefinity

    <script type="text/javascript" src="https://statistikk.bits.no/track/count.js"></script>

    <script type="text/javascript">


    // Begin own parameters.

    wm_page_name = document.write(document.title);

    wm_gname_name="company xx";

    wm_group_name="domainname nn";


    // End own parameters.


    // -->


    The ideal is like this:

    wm_page_name = “<maincategory>|<subcategory>|<page title>”;




  2. Joe
    Joe avatar
    138 posts
    24 Sep 2012
    04 Sep 2009
    Link to this post
    Hello Knut,

    I would recommend retrieving this value server side using either the Sitefinity API or a BreadCrumb control:

    1. Sitefinity's bread crumb control is located in pages section. Click edit on a page and on the right, click Navigation under the toolbox section (on the right). Drag and drop the bread crumb. For more info on the bread crumb control, also know as the site map path, please read this article.

    2. You can use the Sitefinity pages API to pull a page title.

    Let us know if you have any questions.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
2 posts, 0 answered