Thank You Page - Conversion Code - Alidropship {Sale Amount} Available?

blackopzfx

New Member
Quick question. I have the following conversion code in the 'Customization/Thank You' script. Currently I'm having to use the value 1.0 - Is there a way to get the Sale Amount? Wondering if there's a script value I can access since this is the page after a successful sale? If so, what is it? Thnx!!

<script>
gtag('event', 'conversion', {
'send_to': 'AW-XXXXXXXX',
'value': 1.0,
'currency': 'USD',
'transaction_id': ''
});
</script>
 

Georgy

Active Member
Quick question. I have the following conversion code in the 'Customization/Thank You' script. Currently I'm having to use the value 1.0 - Is there a way to get the Sale Amount? Wondering if there's a script value I can access since this is the page after a successful sale? If so, what is it? Thnx!!

<script>
gtag('event', 'conversion', {
'send_to': 'AW-XXXXXXXX',
'value': 1.0,
'currency': 'USD',
'transaction_id': ''
});
</script>
Hi! Please, check that documentation https://developers.google.com/analytics/devguides/collection/gtagjs/enhanced-ecommerce#product-data
 
Top