tradefurniturecompany / site

tradefurniturecompany.co.uk (Magento 2)
https://upwork.com/fl/mage2pro
2 stars 0 forks source link

Integrate the website with Google Analytics 4 #241

Open dmitrii-fediuk opened 1 year ago

dmitrii-fediuk commented 1 year ago

upwork.com/ab/messages/rooms/room_8e141f0c39ea3e5091cd334db37aaef0/story_51ee1a939ab2d4d7f4784d9f6124e64b?companyReference=711981728333447169&atTimestamp=1686238288831

dmitrii-fediuk commented 1 year ago

The built-in Google Analytics 4 module requires Magento ≥ 2.4.5:

dmitrii-fediuk commented 1 year ago

Yireo_GoogleTagManager2 requires Magento ≥ 2.3.7 and PHP ≥ 7.4: github.com/yireo/Yireo_GoogleTagManager2#requirements

We have Magento 2.3.2 and PHP 7.2.

So the upgrade path is quite complex:

  1. Upgrade Magento 2.3.2 → 2.3.6
  2. Upgrade PHP from 7.2 → 7.3
  3. Upgrade Magento 2.3.6 → 2.3.7
  4. Upgrade PHP 7.3 → 7.4
  5. Install Yireo_GoogleTagManager2
dmitrii-fediuk commented 1 year ago

magefan/module-google-tag-manager supports PHP ≥ 7.2 and Magento ≥ 2.2.0. But I do not know whether it allows Google Analytics to measure ecommerce.

As I see, the free version supports 4 events for measuring ecommerce:

  1. begin_checkout
  2. purchase
  3. view_cart
  4. view_item

github.com/magefan/module-google-tag-manager/blob/2.3.0/view/adminhtml/templates/system/config/event/list.phtml#L16-L21

The rest ecommerce events are supported by a paid version only: github.com/magefan/module-google-tag-manager/blob/2.3.0/view/adminhtml/templates/system/config/event/list.phtml#L22-L41