DTM - How to match the home page in a page load rule
Rookie question: How do I write a Path based condition that will detect my homepage only?
I'd like it to match :
THIS: http://www.landsend.com/
NOT: http://www.landsend.com/shop/swim
NOT: http://www.landsend.com/products/womens-ruffle-thongs/id_265218
NOT: https://www.landsend.com/co/ShoppingBag.html
or any other thing that is not the base URL.
I tried using "/" on the PATH condition but it didn't work for me.
I ended up creating a data element called "dtm_pathName" which is the Javascrip Object "window.location.pathname". I can then test this against "/" to see if it is root directory. HOWEVER, this rule needs to be evaluated on the client which seems a little inefficient and clutters up the debug logs in the console with messages like:
"SATELLITE: Condition function (){return _satellite.textMatch(_satellite.getVar("dtm_pathName"),"/")} for rule "TNT - mBoxGlobal HomePage" not met."
There has to be a trick. Any advice?