User login

MetaTraffic 2.0 Boxshot

Adding tracking code to ASP pages

Posted by toloko [February 25, 2006]

I've tried adding the code from the tracking page generated by MetaTraffic (<%
Response.Cookies("mt")("pagetitle") = "" 'INSERT PAGE NAME (OR LEAVE BLANK)
Server.Execute("/metatraffic2/track.asp")
%>)
to e-commerce and forum applications. Both applications break. I've tried adding code to several different locations, without success. Do I add them to the ASP include components or to pages before the tag?

I've tried leaving ("pagetitle") as it is, changing it to ("store") and leaving it blank like this ("").

Do you have detailed instructions for adding code to ASP applications? Sorry I'm not very good with ASP coding.

I do love your program for tracking HTML pages. I've tried quite a few (Web Trends, Hitbox, S-tracking Stat Counter, etc.) and either they close down the service, are too expensive or don't work very well. Yours is a dream come true for me.

Thanks for the good work.

Adding tracking code to ASP pages

Please post the exact error you are receiving. If you are using IE, make sure friendly errors are disabled (Tools menu > Internet Options > Advanced tab) by unchecking Show Friendly HTTP Error Messages.

If you are placing the tracking code within an ASP based application, you might not need the open and closing asp tags <% %>. Remember, you can only use the ASP tracking methods in an ASP page. In all other pages, use the javascript tracking method.

Regards,
~Chad

Adding tracking code to ASP pages

Thanks for the reply. I found that I can put the html code in the footer componenet of the ASP page and it works. So I'll go with that rather than wrestling with the ASP code.