[ic] Receipt.html and URL Parameters

Mike Heins mike at perusion.com
Thu Mar 23 10:26:28 EST 2006


Quoting Dan Bergan (dan at berganconsulting.com):
> Mike Heins wrote:
> >Quoting Joshua Lavin (joshua at kingdomdesign.com):
> >  
> >>On Mar 22, 2006, at 3:38 AM, Phil Dye wrote:
> >>
> >>    
> >>>A long time ago (October 2003!), Gary Norton posted this to the list;
> >>>
> >>>      
> >>>>Their system runs a small generic JavaScript that I have embedded  
> >>>>into the
> >>>>Template pages so that it is available on every page. It sends the  
> >>>>URL of
> >>>>each page to their real-time engine.
> >>>>
> >>>>This engine builds its reports based on the occurrence of  
> >>>>particular URLS.
> >>>>However the receipt.html shows up process.html and it is messing  
> >>>>up their
> >>>>stats. Process.html appears far more frequently than the Receipt  
> >>>>page is
> >>>>delivered.
> >>>>
> >>>>So I need to come up with a way to change the URL so that their  
> >>>>parser
> >>>>        
> >>>knows
> >>>      
> >>>>when somebody arrives at the receipt.html page.
> >>>>
> >>>>If the receipt.html page was displayed as any other name than  
> >>>>process.html
> >>>>it would work.
> >>>>
> >>>>I figured that the page name could stay Process.html as long as I  
> >>>>added a
> >>>>URL parameter such as ?finished=1 or something like that.
> >>>>        
> >>>. but I can't see a subsequent followup in the archives. I'm now in  
> >>>exactly
> >>>the same situation, so does anyone have any suggestions how I can  
> >>>achieve,
> >>>or workaround, this?
> >>>      
> >>I'd like to have a uniquely-named receipt.html as well, but my lame  
> >>workaround for now is to load an image with a CGI parameter on the  
> >>receipt page:
> >>
> >><img src="ct_ecommerce.gif?ct_ecommerce=[total-cost noformat=1]"  
> >>width="1" height="1" />
> >>
> >>(We use ClickTracks.)
> >>    
> >
> >It's actually easy. Just use this intead of [process] and mv_todo
> >on the checkout form:
> >
> >	<form action="[process href=receipt]" method="POST">
> >
> >	<input type="hidden" name="mv_action" value="refresh">
> >
> >  
> Thanks for the tip, Mike.
> 
> But, this shows "receipt" even if there are errors on the checkout 
> form.  Is there a way to have Interchange only show "receipt" in the URL 
> when the checkout is successful?

Not unless you plan on getting everyone to change the way HTTP
works, to allow it to go back in time. 8-)

Think about it -- there is no way any software package could do that.
Once you submit the form, that is the URL.

You could, if you wanted, do a redirect on your receipt page, which
would access another URL. But you would still need to traverse the
one you put in the form submittal.

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.647.1295  tollfree 800-949-1889 <mike at perusion.com>

Fast, reliable, cheap.  Pick two and we'll talk.  -- unknown


More information about the interchange-users mailing list