Large cookies knocking out page requests due to huge headers


#1

G’day guys,

I’ve gotten a number of support requests about this recently and only just managed to get the actual error out of one of the users (a nightmare all of it’s own!).

Basically, it appears that Piwik is making a cookie which is exceeding the server’s LimitRequestFieldSize Apache directive, and thus throwing the following error:


Bad Request

Your browser sent a request that this server could not understand. 
Size of a request header field exceeds server limit.

Cookie: __qca=P0-799381006-1308195318468; 
_pk_ref.13656.af76=%5B%22%22%2C%22%22%2C1308195343%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252Frebeccasjewelry%26h%3D80f36%22%5D;
_pk_id.13656.af76=b585b24bb1f02871.1308195343.1.1308195359.1308195343.; 
_pk_ref.4329.af76=%5B%22%22%2C%22%22%2C1308197435%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252Fletamariedesigns%26h%3D80f36%22%5D;
km_ai=YFZiqgOwWVK1O8lCqMh6BkoQ6Fk; 
_pk_id.4329.af76=eb61e82a178b4c0d.1308197435.1.1308197460.1308197435.; 
km_lv=x; _pk_ref.12762.af76=%5B%22%22%2C%22%22%2C1308228107%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252Fmaryjolarson%26h%3D80f36%22%5D;
_pk_id.12762.af76=a478ed9caf7a88b4.1308228107.1.1308228560.1308228107.; 
_pk_ref.15877.af76=%5B%22%22%2C%22%22%2C1308257278%2C%22http%3A%2F%2Fsearch.zibbet.com%2Fsearch%3Fc1%3D1%26query%3Dsweat%2Bshirt%22%5D;
_pk_id.15877.af76=2ce0dcf164d97755.1308257278.1.1308257327.1308257278.; 
_pk_ref.20140.af76=%5B%22%22%2C%22%22%2C1308258610%2C%22http%3A%2F%2Fsearch.zibbet.com%2Fsearch%3Fpage%3D2%26query%3Dembroidered%2Bshirt%22%5D;
_pk_id.20140.af76=d52d142863cd6c3a.1308258610.1.1308258949.1308258610.; 
km_ni=undefined; 
_pk_ref.21844.af76=%5B%22%22%2C%22%22%2C1308314847%2C%22http%3A%2F%2Fsearch.zibbet.com%2Fsearch%3Fc1%3D%26query%3Dsock%2Bmonkey%22%5D;
_pk_id.21844.af76=039a5bcf893e5016.1308314847.1.1308314847.1308314847.; 
_pk_ref.13065.af76=%5B%22%22%2C%22%22%2C1308315512%2C%22http%3A%2F%2Ftwitter.com%2F%22%5D;
_pk_id.13065.af76=a843d9352b6a229b.1308315512.1.1308315512.1308315512.; 
_pk_ref.13446.af76=%5B%22%22%2C%22%22%2C1308315873%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252Fgardengatebotanicals%252Fartwork%253FartworkId%253D406195%26h%3De85bf%22%5D;
_pk_id.13446.af76=0cecb2f13317bb63.1308315873.1.1308315873.1308315873.; 
_pk_ref.6696.af76=%5B%22%22%2C%22%22%2C1308315891%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252Fwvsechrist%252Fsection%252Fx-mas-in-july%26h%3De85bf%22%5D; 
_pk_id.6696.af76=f80e510bae4171bd.1308315891.1.1308315915.1308315891.; 
_pk_ref.20038.af76=%5B%22%22%2C%22%22%2C1308316077%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252Ffwcandle2010%26h%3De85bf%22%5D;
_pk_id.20038.af76=acccd8329c78b8da.1308316077.1.1308316077.1308316077.; 
_pk_ref.15660.af76=%5B%22%22%2C%22%22%2C1308316114%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252FNicolesVisions%252Fsection%252Fnotecards%26h%3De85bf%22%5D;
_pk_id.15660.af76=7f0ff1d128dc4cd1.1308316114.1.1308316114.1308316114.; 
_pk_ref.2348.af76=%5B%22%22%2C%22%22%2C1308316237%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252FStrandz%252Fsection%252Ffabric-destash%26h%3De85bf%22%5D; 
_pk_id.2348.af76=82c40b2dd72fede5.1308316237.1.1308316237.1308316237.; 
_pk_ref.6647.af76=%5B%22%22%2C%22%22%2C1308316350%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252FYourFavoriteBracelet%26h%3De85bf%22%5D;
_pk_id.6647.af76=ce722b5ea593eac9.1308316350.1.1308316350.1308316350.; 
_pk_ref.7149.af76=%5B%22%22%2C%22%22%2C1308325038%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252FRaigeCreations%26h%3De85bf%22%5D;
_pk_id.7149.af76=a9f20cafc4076f5d.1308315959.2.1308325144.1308315959.; 
_pk_ref.4810.af76=%5B%22%22%2C%22%22%2C1308325334%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fzibbet.com%252FGrandmothersHouse%26h%3De85bf%22%5D;
_pk_id.4810.af76=ce3f1646f9fee0a0.1308325334.1.1308325388.1308325334.; 
_pk_ref.5876.af76=%5B%22%22%2C%22%22%2C1308346848%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252FLorisStylingHairStuff%26h%3De85bf%22%5D;
_pk_id.5876.af76=6a11a3c16c361e98.1308346848.1.1308348227.1308346848.; 
_pk_ref.21118.af76=%5B%22%22%2C%22%22%2C1308349945%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252FOnMommysApron%26h%3De85bf%22%5D;
_pk_id.21118.af76=0d7d9609c3253682.1308237639.2.1308349948.1308237693.; 
_pk_ref.19649.af76=%5B%22%22%2C%22%22%2C1308349981%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252FRedRoseConfections%26h%3De85bf%22%5D;
_pk_id.19649.af76=ca91f5a62e2ef874.1308313750.2.1308349981.1308315840.; 
_pk_ref.14350.af76=%5B%22%22%2C%22%22%2C1308351661%2C%22http%3A%2F%2Fzibbeter.com%2Fshop%2Fgarden-visions-photo-card-collection-2%2F%22%5D; 
_pk_id.14350.af76=6fd2ea4860e3f76c.1308351661.1.1308351661.1308351661.; 
_pk_id.18283.af76=9c35231a357d1407.1308351822.1.1308351822.1308351822.; 
_pk_ref.21656.af76=%5B%22%22%2C%22%22%2C1308366500%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252FBobiCreations%252Fartwork%253FartworkId%253D451064%26h%3D8d302%22%5D;
_pk_id.21656.af76=e158971ca0ea0a14.1308366500.1.1308366500.1308366500.; 
_pk_ref.8690.af76=%5B%22%22%2C%22%22%2C1308441247%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252FAthomicArtandDesign%2523navlink%26h%3D8d302%22%5D;
_pk_id.8690.af76=9ba83d837cee71ca.1308441247.1.1308441318.1308441247.; 
_pk_ref.13169.af76=%5B%22%22%2C%22%22%2C1308528407%2C%22http%3A%2F%2Fsearch.zibbet.com%2Fsearch%3Fc1%3D%26query%3Dsleep%2Bmask%22%5D;
_pk_id.13169.af76=a4e3166219c87701.1308528407.1.1308528407.1308528407.; 
_pk_ref.7489.af76=%5B%22%22%2C%22%22%2C1308528430%2C%22http%3A%2F%2Fsearch.zibbet.com%2Fsearch%3Fc1%3D%26query%3Dsleep%2Bmask%22%5D;
_pk_id.7489.af76=c664b0ded0c46a4e.1308528430.1.1308528430.1308528430.; 
_pk_ref.13708.af76=%5B%22%22%2C%22%22%2C1308579527%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252FPartyPeople%26h%3Dfd172%22%5D;
_pk_id.13708.af76=f9e374b7d05d6dad.1308579527.1.1308579527.1308579527.; 
_pk_ref.16623.af76=%5B%22%22%2C%22%22%2C1308579607%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.mugquotes.com%252F%26h%3Dfd172%22%5D;
_pk_id.16623.af76=6713d420808f1cf7.1308579607.1.1308579693.1308579607.; 
_pk_ref.19086.af76=%5B%22%22%2C%22%22%2C1308613589%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252FCraftylittlekitten%252Fartwork%253FartworkId%253D451443%26h%3Dfd172%22%5D;
_pk_id.19086.af76=e3d277c255aa6896.1308196016.4.1308613589.1308406600.; 
__unam=1839062-130aff487e7-3c2ad4ba-2; 
_pk_id.2003.af76=e52ca48cc5800a3b.1308622318.1.1308622318.1308622318.; 
_pk_ref.21619.af76=%5B%22%22%2C%22%22%2C1308665479%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252FBreitWerk%26h%3De85bf%22%5D;
_pk_id.21619.af76=a7ffcd12967b8a60.1308228731.18.1308665479.1308587510.; 
__utmz=126064134.1308690850.28.12.utmcsr=facebook.com|utmccn=(referral)|utmcmd=referral|utmcct=/l.php; 
__utma=126064134.74971623.1308195318.1308665472.1308690850.28; 
_pk_ref.1.af76=%5B%22%22%2C%22%22%2C1308690850%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252FTwistmo%252Fartwork%253FartworkId%253D453593%26h%3D02b56%22%5D;
_pk_id.1.af76=a7e2072e63314792.1308195318.25.1308690850.1308665479.; 
_pk_ref.17610.af76=%5B%22%22%2C%22%22%2C1308690850%2C%22http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252FTwistmo%252Fartwork%253FartworkId%253D453593%26h%3D02b56%22%5D;
_pk_id.17610.af76=4dfbb926d28aeadb.1308690850.1.1308690850.1308690850.; 
km_uq=1308690851%20%2Fe%3FURL%3Dhttp%253A%252F%252Fwww.zibbet.com%252FTwistmo%252Fartwork%253FartworkId%253D453593%26Referrer%3Dhttp%253A%252F%252Fwww.facebook.com%252Fl.php%253Fu%253Dhttp%25253A%25252F%25252Fwww.zibbet.com%25252FTwistmo%25252Fartwork%25253FartworkId%25253D453593%2526h%253

------------------------------ 
Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 DAV/2 
mod_python/3.3.1 Python/2.4.3 mod_wsgi/3.3 SVN/1.6.13 mod_bwlimited/1.4 
PHP/5.2.9 Server at zibbet.com Port 80

Decoded, that is:


Cookie: __qca=P0-799381006-1308195318468; 
_pk_ref.13656.af76=["","",1308195343,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2Frebeccasjewelry&h=80f36"];
_pk_id.13656.af76=b585b24bb1f02871.1308195343.1.1308195359.1308195343.; 
_pk_ref.4329.af76=["","",1308197435,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2Fletamariedesigns&h=80f36"];
km_ai=YFZiqgOwWVK1O8lCqMh6BkoQ6Fk; 
_pk_id.4329.af76=eb61e82a178b4c0d.1308197435.1.1308197460.1308197435.; 
km_lv=x; _pk_ref.12762.af76=["","",1308228107,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2Fmaryjolarson&h=80f36"];
_pk_id.12762.af76=a478ed9caf7a88b4.1308228107.1.1308228560.1308228107.; 
_pk_ref.15877.af76=["","",1308257278,"http://search.zibbet.com/search?c1=1&query=sweat+shirt"];
_pk_id.15877.af76=2ce0dcf164d97755.1308257278.1.1308257327.1308257278.; 
_pk_ref.20140.af76=["","",1308258610,"http://search.zibbet.com/search?page=2&query=embroidered+shirt"];
_pk_id.20140.af76=d52d142863cd6c3a.1308258610.1.1308258949.1308258610.; 
km_ni=undefined; 
_pk_ref.21844.af76=["","",1308314847,"http://search.zibbet.com/search?c1=&query=sock+monkey"];
_pk_id.21844.af76=039a5bcf893e5016.1308314847.1.1308314847.1308314847.; 
_pk_ref.13065.af76=["","",1308315512,"http://twitter.com/"];
_pk_id.13065.af76=a843d9352b6a229b.1308315512.1.1308315512.1308315512.; 
_pk_ref.13446.af76=["","",1308315873,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2Fgardengatebotanicals%2Fartwork%3FartworkId%3D406195&h=e85bf"];
_pk_id.13446.af76=0cecb2f13317bb63.1308315873.1.1308315873.1308315873.; 
_pk_ref.6696.af76=["","",1308315891,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2Fwvsechrist%2Fsection%2Fx-mas-in-july&h=e85bf"]; 
_pk_id.6696.af76=f80e510bae4171bd.1308315891.1.1308315915.1308315891.; 
_pk_ref.20038.af76=["","",1308316077,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2Ffwcandle2010&h=e85bf"];
_pk_id.20038.af76=acccd8329c78b8da.1308316077.1.1308316077.1308316077.; 
_pk_ref.15660.af76=["","",1308316114,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2FNicolesVisions%2Fsection%2Fnotecards&h=e85bf"];
_pk_id.15660.af76=7f0ff1d128dc4cd1.1308316114.1.1308316114.1308316114.; 
_pk_ref.2348.af76=["","",1308316237,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2FStrandz%2Fsection%2Ffabric-destash&h=e85bf"]; 
_pk_id.2348.af76=82c40b2dd72fede5.1308316237.1.1308316237.1308316237.; 
_pk_ref.6647.af76=["","",1308316350,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2FYourFavoriteBracelet&h=e85bf"];
_pk_id.6647.af76=ce722b5ea593eac9.1308316350.1.1308316350.1308316350.; 
_pk_ref.7149.af76=["","",1308325038,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2FRaigeCreations&h=e85bf"];
_pk_id.7149.af76=a9f20cafc4076f5d.1308315959.2.1308325144.1308315959.; 
_pk_ref.4810.af76=["","",1308325334,"http://www.facebook.com/l.php?u=http%3A%2F%2Fzibbet.com%2FGrandmothersHouse&h=e85bf"];
_pk_id.4810.af76=ce3f1646f9fee0a0.1308325334.1.1308325388.1308325334.; 
_pk_ref.5876.af76=["","",1308346848,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2FLorisStylingHairStuff&h=e85bf"];
_pk_id.5876.af76=6a11a3c16c361e98.1308346848.1.1308348227.1308346848.; 
_pk_ref.21118.af76=["","",1308349945,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2FOnMommysApron&h=e85bf"];
_pk_id.21118.af76=0d7d9609c3253682.1308237639.2.1308349948.1308237693.; 
_pk_ref.19649.af76=["","",1308349981,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2FRedRoseConfections&h=e85bf"];
_pk_id.19649.af76=ca91f5a62e2ef874.1308313750.2.1308349981.1308315840.; 
_pk_ref.14350.af76=["","",1308351661,"http://zibbeter.com/shop/garden-visions-photo-card-collection-2/"]; 
_pk_id.14350.af76=6fd2ea4860e3f76c.1308351661.1.1308351661.1308351661.; 
_pk_id.18283.af76=9c35231a357d1407.1308351822.1.1308351822.1308351822.; 
_pk_ref.21656.af76=["","",1308366500,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2FBobiCreations%2Fartwork%3FartworkId%3D451064&h=8d302"];
_pk_id.21656.af76=e158971ca0ea0a14.1308366500.1.1308366500.1308366500.; 
_pk_ref.8690.af76=["","",1308441247,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2FAthomicArtandDesign%23navlink&h=8d302"];
_pk_id.8690.af76=9ba83d837cee71ca.1308441247.1.1308441318.1308441247.; 
_pk_ref.13169.af76=["","",1308528407,"http://search.zibbet.com/search?c1=&query=sleep+mask"];
_pk_id.13169.af76=a4e3166219c87701.1308528407.1.1308528407.1308528407.; 
_pk_ref.7489.af76=["","",1308528430,"http://search.zibbet.com/search?c1=&query=sleep+mask"];
_pk_id.7489.af76=c664b0ded0c46a4e.1308528430.1.1308528430.1308528430.; 
_pk_ref.13708.af76=["","",1308579527,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2FPartyPeople&h=fd172"];
_pk_id.13708.af76=f9e374b7d05d6dad.1308579527.1.1308579527.1308579527.; 
_pk_ref.16623.af76=["","",1308579607,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.mugquotes.com%2F&h=fd172"];
_pk_id.16623.af76=6713d420808f1cf7.1308579607.1.1308579693.1308579607.; 
_pk_ref.19086.af76=["","",1308613589,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2FCraftylittlekitten%2Fartwork%3FartworkId%3D451443&h=fd172"];
_pk_id.19086.af76=e3d277c255aa6896.1308196016.4.1308613589.1308406600.; 
__unam=1839062-130aff487e7-3c2ad4ba-2; 
_pk_id.2003.af76=e52ca48cc5800a3b.1308622318.1.1308622318.1308622318.; 
_pk_ref.21619.af76=["","",1308665479,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2FBreitWerk&h=e85bf"];
_pk_id.21619.af76=a7ffcd12967b8a60.1308228731.18.1308665479.1308587510.; 
__utmz=126064134.1308690850.28.12.utmcsr=facebook.com|utmccn=(referral)|utmcmd=referral|utmcct=/l.php; 
__utma=126064134.74971623.1308195318.1308665472.1308690850.28; 
_pk_ref.1.af76=["","",1308690850,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2FTwistmo%2Fartwork%3FartworkId%3D453593&h=02b56"];
_pk_id.1.af76=a7e2072e63314792.1308195318.25.1308690850.1308665479.; 
_pk_ref.17610.af76=["","",1308690850,"http://www.facebook.com/l.php?u=http%3A%2F%2Fwww.zibbet.com%2FTwistmo%2Fartwork%3FartworkId%3D453593&h=02b56"];
_pk_id.17610.af76=4dfbb926d28aeadb.1308690850.1.1308690850.1308690850.; 
km_uq=1308690851 /e?URL=http%3A%2F%2Fwww.zibbet.com%2FTwistmo%2Fartwork%3FartworkId%3D453593&Referrer=http%3A%2F%2Fwww.facebook.com%2Fl.php%3Fu%3Dhttp%253A%252F%252Fwww.zibbet.com%252FTwistmo%252Fartwork%253FartworkId%253D453593%26h%3

My setup includes a huge number of sites (we’re tracking our member’s pages on a sub-URL basis, as per this post), and I’m wondering if that is what’s causing this issue - ie, the visitor hits a few of those sites, and the cookie information grows a little with each visit?

Any and all information would be appreciated!

Thanks :slight_smile:


(vipsoft) #2

Um… don’t do that. You need to put member pages in folders and use setCookiePath(). If you can’t do this physically, you might able to fake it with some URL rewriting.


#3

Beauty, that’s exactly what I was looking for. Cheers Anthon :slight_smile:

For others finding this thread, here is the info:
http://piwik.org/docs/javascript-tracking/
http://piwik.org/faq/new-to-piwik/#faq_104
Enjoy!


#4

I may have spoken too soon.

Here is what I see when I inspect the page in Google Chrome, which is no different than before I made the change to use setCookiePath(). I expected to see a second cookie created with a path value set as highlighted in the screenshot:

http://img848.imageshack.us/img848/4424/piwikcookie.png

And here’s the code for Piwik on that page:


        <!-- Piwik --> 
        <script type="text/javascript"> 
            var pkBaseURL = (("https:" == document.location.protocol) ? "https://analytics.devzibbet.com/" : "http://analytics.devzibbet.com/");
            document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
            </script><script type="text/javascript"> 
            try {
                var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 1);
                piwikTracker.trackPageView();
                piwikTracker.enableLinkTracking();
            } catch( err ) {}
            try {
                var piwikTracker2 = Piwik.getTracker(pkBaseURL + "piwik.php", 194);
                piwikTracker2.setCookiePath("/123AnalyticsTest");
                piwikTracker2.trackPageView();
                piwikTracker2.enableLinkTracking();
            } catch( err ) {}
        </script><noscript><p><img src="//analytics.devzibbet.com/piwik.php?idsite=1,194" style="border:0" alt="" /></p></noscript> 
        <!-- End Piwik Tracking Tag --> 

Am I doing anything incorrect here, or is this expected behaviour?

Thanks for your help!


(vipsoft) #5

Should work if the current page’s url contains the path /123AnalyticsTest/


#6

Close, but not exactly. The URL is:

http://www.example.com/123AnalyticsTest

Note: no trailing slash. Does this make a difference?


(vipsoft) #7

If 123AnalyticsTest isn’t a folder, then no, that’s not a valid path.

You might be able to fake it with a tag and mod_rewrite.


#8

123AnalyticsTest isn’t a folder. Using mod_rewrite, it is presented as a folder to the browser by apache, but the server does not actually contain that folder.

I have posed the question on Stack Overflow, where you can read more details on my setup and what I’ve tried. Does this shed any further light onto the situation?

.htaccess RewriteBase and cookies