
Hi guys I want to add gtag_report_conversion to final button on checkout page, but don't know how to do it. Help needed! 

The easiest way (well still requires a bit of learning curve) would be to use Google Tag Manager. GTM allows you to track button clicks. There are some really good Youtube videos on tracking page interactions using GTM. Since moving from just using Google Analytics, GTM has made doing this sort of tracking a breeze.
Mike Little
Director / Developer / Makes the coffee
Creative Digital Limited
http://www.creativedigital.co.nz
OK, here is the way how I made it. Maybe someone would like to use it in the future!
1. Add this code to: /catalog/controller/common/header.php
2. Add this if/else code to: /catalog/view/theme/default/template/common/header.twig (somewhere between <head> </head>)
3. Upload files, clear cache, and done!
1. Add this code to: /catalog/controller/common/header.php
Code: Select all
$data['route'] = isset($this->request->get['route']) ? $this->request->get['route'] : 'common/home';
Code: Select all
{% if route == 'checkout/success' %}
<!-- Event snippet for YOUR GOOGLE TAG TITLE conversion page -->
Your GTAG conversion code here
{% endif %}
Who is online
Users browsing this forum: No registered users and 49 guests