It seems like a pretty common question but I haven't found a solution that fits my needs.
I need to send out successful conversion tracking code back to google upon a successful action/event.
My workflow process is such..
A user gets to a register
page with a form...
When the form submits and the user is successfully registered, they are redirected to a dashboard
page.
How can I fire off the conversion form this event/goal after my API says it was a success?
Similarly, when a user makes a purchase its the same workflow.
checkout
-> dashboard
Side note about purchases: I would like to have a variable conversion value for each purchase (I can send amounts out from my server)
How can I make sure that:
dashboard
a tracking code does not get fired out? I think that the key is NOT to fire pixel at dashboard onload(), but fire it only after API confirm the success - for example with JavaScript promises .
Alternative to this can be using Google Tag Manager, which should be able to fire pixel only after certain rules are accomplished
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.