How to make Google Analytics Pro plugin compatible with OMF

Problem

You can see your analytics ID at the bottom of the OMF home page and you don't receive statistics about the mobile site.

Cause

This is a compatibility issue with the Google Analytics Pro plugin for OpenCart.

Solution

Follow these steps to make the Google Analytics Pro extension compatible with OMF:

  1. First, create a custom theme:
    https://braiv.zendesk.com/entries/23564448-How-to-create-a-custom-mobile-theme-OMF-v1-4-x-

    Please note
    that If you modify the default theme, you will lose your changes when you update OMF.
  2. Open your custom theme directory:
    /catalog/view/theme/your_mobile_theme
    Create a new directory inside of it and name it “template”.
  3. Now go to /catalog/view/theme/your_mobile_theme/template
    Here create a new directory and name it “common”.
  4. Copy the file
    /catalog/view/theme/omf2/template/common/footer_mobile.tpl
    to /catalog/view/theme/your_mobile_theme/template/common
  5. Open up the file
    /catalog/view/theme/your_mobile_theme/template/common/footer_mobile.tpl
    in any text editor.
  6. Search for this text:
    <?php echo $google_analytics; ?>
  7. Copy your custom analytics code.
  8. Paste your custom analytics code in the file, replacing the line from 6.
  9. Save the file.
  10. Apply your custom mobile theme through the OMF Admin Panel:
    https://braiv.zendesk.com/entries/24121992-How-to-use-the-OMF-Admin-Panel

Your analytics plugin should now be working together with OMF.

Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk