Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 11 of 11

Thread: Adding Sitemeter?

  1. #1
    PiranhaGear is offline Junior Member
    Join Date
    Nov 2008
    Posts
    12

    Default Adding Sitemeter?

    What's the best way to add a site counter to the site? We're trying to convert SiteMeter from an older site to this one and they provided HTML, but I'm not sure where it should be added.

    Thanks,
    Bill

  2. #2
    DanV's Avatar
    DanV is offline Ursus arctos horribilis
    Join Date
    Apr 2006
    Posts
    1,568

    Default

    Counters (eg. this page has be viewed 3852674637243 times) pretty much died 10 years ago. They don't tend to add anything to the site. They *are* useful to admins to somewhat help measure traffic to a given page, but tools like Google Analytics or AWStats (IIS Log Parser) are much much better, provide a huge amount of useful information, and don't cheapen the look/feel of the site. Google Analytics is supported in AspDotNetStorefront out of the box.

  3. #3
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    If you were going to add it, it would be best added in the template.ascx file I should think. However, I wholly agree with Dans previous statement. It doesn't add a whole lot to the site; I think it lacks that professionalism that people have come to expect from online shopping sites. Enabling Google Analytics is as simple as following the instructions here in our knowledgebase.
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  4. #4
    PiranhaGear is offline Junior Member
    Join Date
    Nov 2008
    Posts
    12

    Default

    Actually, SiteMeter is a tracking product (service) that is similar to Google Analytics. Provides info like what page someone came from, keywords used in the search engine to find you, traffic volume by hour, etc.

    Sorry, I should have been more generic in my query. It just has a small amount of code that needs to be added and seemed a little simpler (ie, less I can goof up) that Google's version.

    Of course, Google's free........ Maybe that knowledge base article is looking pretty good about now <g>

    Thanks for the response!

  5. #5
    PiranhaGear is offline Junior Member
    Join Date
    Nov 2008
    Posts
    12

    Default

    I updated the template.ascx (FTP'd it to the server), but the new info isn't showing on the site. I assume I have to "restart" it, but I can't locate the web.config file to touch it (and reset the date)...

    BTW, I have been running with cashing turned off - if that makes a difference?

  6. #6
    Rex is offline Banned
    Join Date
    Nov 2007
    Posts
    561

    Default

    template.ascx generally compiles on-the-fly after a change is made, but if you want to try touching the web.config you should find it in the root of your application directory.

    Can you provide the snippet of code they suggest placing in your page?

  7. #7
    PiranhaGear is offline Junior Member
    Join Date
    Nov 2008
    Posts
    12

    Default

    Oops. It was just the home page that didn't seem to be getting the update (I was looking at the copyright comment to see if the update was working). The product pages were all getting done OK...

    HOWEVER, come to find out that with a secure (https://) site, when I added their code, anyone going to my site's pages gets the "{Not all elements are secure, do you want to display them anyway}" info dialog box - on every page.

    I contacted them to find out they'll have a version that works with secure pages "...in a couple of months..."

    Hmmmm... Looks like Google is getting another customer <g>


    FYI: Here's the code for the HTML version (there's a java version too):

    <a href="http://sm9.sitemeter.com/stats.asp?site=accountname" target="_top">
    <img src="http://sm9.sitemeter.com/meter.asp?site=accountname" alt="Site Meter" border="0"/></a>

  8. #8
    Rex is offline Banned
    Join Date
    Nov 2007
    Posts
    561

    Default

    I am not sure I understand their response.

    You cannot simply change their urls to use HTTPS?

    You can easily add code to detect which protocol the page is using and dynamically generate the urls to use the proper one.

  9. #9
    Rob is offline Senior Member
    Join Date
    Aug 2004
    Posts
    3,037

    Default

    they need to support https invocations. contact them. it's an oversight of many "affiliate" companies and other companies who what you to call scripts from your site, but then fail to understand the need for HTTPS, on their site, which they can solve for a mere $100 for ALL of their customers.

    It even took Google a year to do this ()
    AspDotNetStorefront
    Shopping Cart

  10. #10
    Rex is offline Banned
    Join Date
    Nov 2007
    Posts
    561

    Default

    That is what I do not understand. You can hit the supplied URLs without any query string and get a page response. So they do have SSL working.
    I am curious what more they would need to implement?!?

    My mistake, sm9.sitemeter.com/stats.asp performs a redirect to www.sitemeter.com/default.asp, which is SSL enabled.
    It probably only does this redirect when you do not supply working querystring params...
    Last edited by Rex; 12-07-2008 at 03:19 PM.

  11. #11
    Rob is offline Senior Member
    Join Date
    Aug 2004
    Posts
    3,037

    Default

    No, it doesn't work on SSL. I tried this:

    https://sm9.sitemeter.com/meter.asp?site=accountname

    and got:

    Firefox can't establish a connection to the server at sm9.sitemeter.com.

    Again the vendor should support HTTPS.
    AspDotNetStorefront
    Shopping Cart