php - Opencart 2.2.0 Google Analytic -


i integrating googleanlaytics in opencart 2.2.0, error reflected

notice: undefined index: store_id in /home/domainname/public_html/test/admin/controller/analytics/google_analytics.php on line 13warning: cannot modify header information - headers sent (output started @ /home/domainname/public_html/test/admin/controller/startup/error.php:34) in /home/domainname/public_html/test/system/library/response.php on line 12 

how can resolve issue

google analytics can added opencart installation opening file: catalog/view/theme/{your template's name}/common/footer.tpl

or if it's opencart 3.x catalog/view/theme/{your template's name}/common/footer.twig

and before tag add google analytics js code. save file , upload.

store_id irrelevant task except if added/installed extension google analytics provide google analytics code per store (if using opencart multistore functionality)


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -