Tracking user on the server-side in Google Analytics after payment on third party site -


i have e-commerce website using google analytics (async ga.js) on payment done on third-party service (by french bank) not allow cookies on site. so, when customer goes off-site pay , complete transaction, lose in google analytics. of course may click on "go website" link not 100%, far it.

however banking site send server-to-server confirmation of transaction result (payment completed or not), along many variables. among variables text field returned unchanged original request emanating our our server.

to rephrase: can send text field (of 3200 characters max) along post request banking server @ time user clicks payment button (this post html form) , transmit text unchanged server (but no longer in browser).

so given these parameters how can send signal google analytics visitor has completed transaction (if has) ? there better/simpler ways accomplish this?

the environment lamp , can use google apis client library php.

you can create unique user id each user: https://support.google.com/analytics/answer/3123666?hl=en

and can use google measurement protocol the data need along side user id: https://developers.google.com/analytics/devguides/collection/protocol/v1/reference sending hit using s2s pixel

that way you'll have special user id views - showing users finished transaction , other values added hit (utm_campaign example).


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -