redirect - PHP Header Location Breaking Google Analytics Goal? -


Our website currently uses Google Universal Analytics to track goal conversions from our own private domain and third party payment processor. Still working. Currently our goal is:

/ cart - & gt; / Checkout - & gt; / receipt

On the / cart page located on our private domain, the user clicks on "checkout" when they do this, / Precheckout , which is a preprocessing script that ends with the header ("location: external.com/checkout"); Exit;

Our suspicions lead us to believe that this is the mediator page which is breaking our funnels, which I think when the header ("Location:"); is used and no data is sent to the browser, so it should follow the redirect. What is happening?

I can bet that the server does not send the "referrer" header to the browser by changing the location.

Try the header ('Referrer: / Cart'); / checkout in . P> Since the user is not clicking anything between the precheckout and checkout, you have to set it manually. If the user is not always clicking on that link (i.e. to bookmark it) to access the checkout page, it may be better to set a session variable to determine whether they come from the car and if They use header to code above

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -