The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can cPanel or WHM Provide Trackable URLs

Discussion in 'General Discussion' started by Dubcnn, Nov 20, 2008.

  1. Dubcnn

    Dubcnn Registered

    Joined:
    Nov 20, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi all,

    I wondered if cPanel can be used to create trackable urls

    For example

    www.mywebsite.com/index.html#refid1

    and then within cpanel be able to track the number of visitors via this?

    really it seems like just a merger of the qualities of webalizer and redirects!

    thanks in advance
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    cPanel/WHM itself does not offer this functionality. Many third party scripts do provide this functionality though.
     
  3. Dubcnn

    Dubcnn Registered

    Joined:
    Nov 20, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi DavidG,

    Thanks! Could you or anyone else advise of any free usage scripts?

    Are there any plans to add this into later versions of cPanel?


    Regards
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I'm not aware of any current plans to add this functionality. However, we do use third party programs for web statistics: Webalizer, Analog and AWStats. As this could be considered a component of web statistics, you may wish to contact the makers of those programs to see if they would be willing to add this functionality. If they add this functionality to their software, when we update the versions of the software available in cPanel, this would propagate into cPanel itself.

    As for any free scripts, cPanel does not have any official recommendations.
     
  5. Dubcnn

    Dubcnn Registered

    Joined:
    Nov 20, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for your advice David
     
  6. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    A bit of awk and grep magic, you should be able to achieve this.
    I assume you're trying to count how many unique hits you got on "index.html#refid1" and who their referers were?

    If so, give this a shot:
    Code:
    grep -E 'index.html|GET / ' /usr/local/apache/domlogs/yourdomain.com | awk {'print $1" "$11'} | sort | uniq
     
Loading...

Share This Page