Post by qtcstore » Tue Oct 03, 2017 7:43 pm

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>

Newbie

Posts

Joined
Mon Jul 31, 2017 2:05 pm

Post by straightlight » Tue Oct 03, 2017 10:28 pm


The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by qtcstore » Thu Oct 05, 2017 6:55 pm

I used this extension and it worked perfectly:
https://www.opencart.com/index.php?rout ... n_id=28307

Newbie

Posts

Joined
Mon Jul 31, 2017 2:05 pm
Who is online

Users browsing this forum: No registered users and 10 guests