How to install Google Analytics’ Enhanced Ecommerce Features in Codeigniter - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: How to install Google Analytics’ Enhanced Ecommerce Features in Codeigniter (/showthread.php?tid=76529) |
How to install Google Analytics’ Enhanced Ecommerce Features in Codeigniter - sarathedev - 05-20-2020 I am trying to implement Google Analytics. First step I did is addes this code in header file Code: <!-- Global site tag (gtag.js) - Google Analytics --> This is working fine and its tracking users. Now I want to implement Enhanced Ecommerce. For now I am only interested in Purchase event. Documentation says I should add this code Code: ga('create', 'UA-XXXXX-Y'); My second question is that if I just copy and paste this code in header file and only change I make is UA-XXXXX-Y. And make a puchase on website, will it show something on analytics? I know I have to change code to be dynamic but just for testing I want basic code which I should just copy and paste. |