Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. Installation
  2.  
  3. Backup your website files.
  4. This plugin supports ZenCart 1.3.8 and above. Ensure you aren't running an older version before installing.
  5. Before uploading and merging, rename these folders to your specific folder names:
  6. /YOUR_ADMIN > Rename to your admin folder name
  7. /includes/templates/YOUR_TEMPLATE > Rename to your template folder name
  8. Upload and merge all files and updated folders in this package while maintaining the directory structure be careful to view the differences in the files that have the same names ensuring that all chunks of the Easy Google Analytics code particularly in the modules and templates folders are merged with existing files.
  9. Open includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php and add the following code just before the closing </body> tag:
  10. Select code
  11. <?php
  12. if (GOOGLE_ANALYTICS_TRACKING_TYPE != "Asynchronous") {
  13. require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php');
  14. }
  15. ?>
  16. If using Enhanced Ecommerce, merge the modified core files located in /documentation/modified_core_files/ with the same files from your template (note: only the portions related to enhanced ecommerce need to be merged). Simply copy and paste the sections of the Google Analytics Plugin parts until you see ******MERGE******. The starred merge means you will have to look at the pattern of the code to see what is going on this just means that you will either be adding $geeOnClick at the end of the beginning <a> tags as shown in the pattern or adding $geeImpression just before of the last div tag as shown in the pattern. Extra details are given where these tags appear.
  17. This module auto-installs the configuration page once you've logged into the ZenCart administration panel. You should see a green bar at the top of the page stating that Easy Google Analytics was installed successfully.
  18. In the Admin Panel, go to CONFIGURATION > GOOGLE ANALYTICS and set "Analytics Account" to your Google Analytics account / property ID.
  19. If you are still using the older "ga.js" type of Google Analytics, change "Analytics Tracking Type" to "ga.js".
  20. Once you've made sure the settings reflect your Google Analytics account setup, set "Analytics Enabled" to "Enabled".
  21. Hooray! Easy Google Analytics is now running on your ZenCart installation.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement