Page 1 of 1

Dynamic Values

Posted: Tue Oct 03, 2017 7:43 pm
by qtcstore
I'm trying to track via google tag manager the OpenCart success transaction but i'm stuck with OpenCart variables, so anyone knows how to implement these data with OC dynamic values?

Code: Select all

<script>
dataLayer.push({
		'event':'ecomm_event',
    'transactionId': '98765', // Transaction ID - this is normally generated by your system.
    'transactionAffiliation': 'Sugarbush Mt.', // Affiliation or store name
    'transactionTotal': '89.00', // Grand Total
    'transactionTax': '5.99' , // Tax.
    'transactionShipping':'0', // Shipping cost
    'transactionProducts': [
	{
        'sku': 'LTAFD', // SKU/code.
        'name': 'One Day Adult Lift Ticket', // Product name.
        'category': 'Lift Tickets', // Category or variation.
        'price': '89.00', // Unit price.
        'quantity': '1'
    }]
});
</script>

Re: Dynamic Values

Posted: Tue Oct 03, 2017 10:28 pm
by straightlight

Re: Dynamic Values

Posted: Thu Oct 05, 2017 6:55 pm
by qtcstore
I used this extension and it worked perfectly:
https://www.opencart.com/index.php?rout ... n_id=28307