There is no order amount and transaction id on the thankyou page, what should I do?
@Jimmy.Xu you can do something like this:
<!-- Event snippet for Purchase (app.funnelish.com) conversion page -->
<script>
gtag('event', 'conversion', {
'send_to': '{your tracking id here}',
'value': localStorage.getItem("funnelish_order_value"),
'currency': 'USD',
'transaction_id': new Date().getTime()+''
});
</script>
The Funnelish Facebook Pixel app stores the previous order value into a localStorage item named "funnelish_order_value"
which you can read on the next step after an order, which means you’ll need to add that code to any individual step that comes after a checkout or upsell (not just a TYP).
For the transaction id, I simply used getTime(), which would return current UNIX time, which is random.
Didn’t find funnelish_order_value related cookie, but according to your suggestion, I found fnsh-ga-order_details from storage, it should work, thanks.
funnelish_order_value
is used by the Facebook Pixel app, and it’s available only during page load… so it disappears immediately once the FB pixel app finished loading… that’s done on purpose so that even if customers refresh the page it will not double fire the pixel.
fnsh-ga-order_details
is similar and it’s used by Google Analytics app, it includes more details.
Thanks for the clarification. Through fnsh-ga-order_details, I added a last_transaction_id. After the user pays or refreshes the page, if the transaction_id in fnsh-ga-order_details is the same as the last_transaction_id, no more data will be sent
Guys, any one have same problem to me. I add snippet (Google Ads Conversion Tracking) after the checkout page, to thank you page or upsell page
Then, I troubleshoot with Google Tag Assistant and don’t see any Google Ads Conversion Tracking available
Me too, I think Funnelish team should consider this feature seriously
Same here. Then I added some custom tracking code on each upsell & downsell page. You can also use Google Tag manager with custom event.
This doesn’t work:
'value': funnelish.getCookie("funnelish_order_value"),
When I use this, the conversion isn’t firing. But when I use the default one, it does but not with the custom value.
Are you by any chance using that code in the HEAD of the page instead of BODY?
Also, you will need to use the Facebook Pixel app, it’s the one that sets the value of the funnelish_order_value
cookie.