#1429 – Google analytics and adwords conversion tracking

Posted in ‘Taxi Booking for Joomla’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Wednesday, 28 February 2018 14:02 GMT
serguei_kp
SystemPay for Taxi Booking, Taxi Booking recurring updates Annually
 Hello, I would like to add some javascript google tracking to the booking form component.
I would like to trigger the function when client click on the "See price" button, "Book now", and "Make a booking".

Where should I put call to the javascript function : onclick="gtag_report_conversion()" ?
Which folder, file?

Serge.
 
Wednesday, 28 February 2018 17:20 GMT
ronniee
RedSys for Taxi Booking
Hi Serge,

Those actions (See price, Book now, Make a booking etc.) are defined in SITE_ROOT\components\com_taxibooking\assets\js\three\main.js

I think you can't put "onclick="gtag_report_conversion()" directly in those actions, but still you can try.

Hope this helps
Ronniee
 
Wednesday, 28 February 2018 19:02 GMT
serguei_kp
SystemPay for Taxi Booking, Taxi Booking recurring updates Annually
Hi Ronniee, I will do it in the other way, if it's possible,

I'll put the call to the function directly in: components/com_taxibooking/views/taxibooking/tmpl/,
but I'm not shure which file I have to modify: default.php or default_three.php ?

I'll do it like this :
<button onclick="gtag_report_conversion()" class="custom-btn custom-btn-primary custom-btn-lg custom-btn-block see_price button-color" type="button"><?php echo JText::_('SEE_PRICE'); ?> </button>

Then I'll paste the Google script between <script> </script> tags in the same file.

Of course if any updates I'll have to repeat this operation once more.

Serge.
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

KANEV Web Development limited is not affiliated with or endorsed by the Joomla Project or Open Source Matters.

KANEV Web Development limited is registered in England and Wales #8902407