Assuming you have your analytics tag already loaded through your theme or a code injection plugin, here’s what I put on the signup and modification settings under s2->APi/Tracking (The second script tag is for Microsoft ads). I don’t sell recurring, though. So this works for one-time purchases. Hopefully it’s enough to start with for recurring.
<script>
gtag('event', 'purchase', {
transaction_id: '%%subscr_id%%',
affiliation: 'I put my site name here',
value: '%%initial%%',
currency: 'USD',
coupon: '%%coupon_code%%',
items: [
{
item_name: '%%item_name%%',
item_id: '%%item_number%%',
price: '%%initial%%',
quantity: 1,
},
],
})
</script>
<script>
window.uetq = window.uetq || []
window.uetq.push('event', 'purchase', {
transaction_id: '%%subscr_id%%',
ecomm_prodid: ['%%item_number%%'],
ecomm_pagetype: 'purchase',
ecomm_totalvalue: '%%initial%%',
revenue_value: '%%initial%%',
currency: 'USD',
items: [
{
id: '%%item_number%%',
quantity: 1,
price: '%%initial%%',
},
],
})
</script>