Track transaction-specific conversion values in Oscommerce (gtag.js)
Recently one of client ask me to implement dynamic adword conversion on directly putting code or also using Google Tag Manager on Oscommerce with (gtag.js), Once I looked Oscommerce asked to make test order once I place a tested then I told it’s possible implemented directly (gtag.js) and also using Google Tag Manager.
Just written a Custom PHP Code with (gtag.js) that will help you track dynamic adword Conversion tracking using (gtag.js) for Oscommerce
<script>
gtag(‘event’, ‘conversion’, {
‘send_to’: ‘AW-xxxxx/xxxxxxxxxxx’,
‘value’: xxxxxxxxxxxxxxxxxxxxxxxxxx,
‘currency’: ‘AUD’,
‘transaction_id’: ‘xxxxxxxxxxxxxxx’
});
</script>
First you need write a custom php on Success Pages on Oscommerce (gtag.js) to track dynamic Adword conversion tracking for Oscommerce
Like that
<?php
if ((basename($PHP_SELF) == FILENAME_CHECKOUT_SUCCESS)
Warning:if you do n’t know about javascript/ Custom PHP Code or do n’t have developing knowledge then do n’t try to Dynamic Adword Conversion Tracking Code in Oscommerce a custom javascript/ Custom PHP without using Any plugin that can broke your site, Cart and other functionality
Disclaimer: Google tag manager belongs to Google property
For Contact: mappchero@gmail.com
I am available for Hire on Freelancer: Freelancer.com
I am available for Hire on Upwork: Upwork.com
I am available for Hire on Peopleperhour: Peopleperhour.com
I am available for Hire on Guru: Guru.com
No Fields Found.