Magento 1 Google Analytics Synchronization Extension

Installation and User Guide for Magento 1 Google Analytics Synchronization Extension

Table of Contents

  1. Installation
    • Disable Compilation Mode
    • Upload Package
    • Clear Caches
  2. Configuration Settings for Google Analytics Synchronization
    • General Settings
  3. Create Project in Google Developer Console for GA Reporting API
    • Add Cloud Console Email to Google Analytics 4
  4. Order Tracking INFO
  5. Verify Synced Transactions
    • GA Sync Logs
    • Google Analytics 4 Real Time Reports
  6. Run GA Synch Manually

Installation

Configuration Settings for Google Analytics Synchronization

Go to Admin > Stores > Configuration > Scommerce Configuration > Google Analytics Synchronization

General Settings

image - 2025-06-23T181103.908.png

image - 2025-06-23T181148.781.png

Create Project in Google Developer Console for GA Reporting API

Please follow the steps below to create project in Google developer console for GA reporting API and to obtain "application name" and "security key JSON File": -

image - 2025-06-23T181243.140.png

image - 2025-06-23T181319.578.png

image - 2025-06-23T181510.483.png

image - 2025-06-23T181552.585.png

image - 2025-06-23T181728.731.png

image - 2025-06-23T184519.034.png

image - 2025-06-23T184638.366.png

image - 2025-06-23T184803.797.png

image - 2025-06-23T184909.312.png

image.png

Add Cloud Console Email to Google Analytics 4

In the earlier step we created a service account ID which is also the service account email. Alternatively, you can go to the "API & Services" section from the left menu and find your service account email there as shown in screengrab below:-

image - 2025-06-23T185401.592.png

Now In order for this account to access your GA4 property we are required to add this service email to GA4. To do that copy this email address and go to your GA4 property. Go to admin and click on Property access management:-

image - 2025-06-23T185547.820.png

Click on plus sign to add new email:-

image - 2025-06-23T185651.303.png

Next add the email and set the permissions to Editor and you are done.

image - 2025-06-23T185751.886.png

Order Tracking INFO

The order tracking info is captured against each order which is later used to sync the transactions to GA4 attributing them to correct sessions and dates to improve report accuracy. The order tracking info can be viewed by going into Admin>Sales>Order>Edit any order. Please refer to the screengrab below.

image - 2025-06-23T185911.882.png

Note:- The Order tracking info will only present in the orders that are placed after the module is installed and enabled. It won't be present for historical orders.

Verify Synced Transactions

The synced transactions can be verified in two ways. Either checking the GA Sync logs or by checking the Real time reports in GA4 (as it takes 24 to48 hrs for GA4 to attribute data to reports realtime is the quickest way to verify).

GA Sync Logs

The GA Sync logs can be viewed by going into your server>Magento installation directory>Var>log>ga_sync.log.

image - 2025-06-23T190027.435.png

This file contains details of each synced transaction alongwith the order data that was sent, please refer to the image below.

image - 2025-06-23T190134.016.png

Google Analytics 4 Real Time Reports

Go to your Google Analytics 4 Property then from left menu click on reports:-

image - 2025-06-23T190314.251.png

Next, select realtime from the left menu and under the event name column you can find the purchase event by clicking on that you can verify the transaction ID that was sent through the sync module.

image - 2025-06-23T190414.687.png

Google Analytics 4 Custom Reports

You can create a transaction report in GA4 using custom reports to verify the transactions received. For more information, please check https://www.scommerce-mage.com/blog/how-to-create-transactions-report-in-google-analytics-4-ga4.html

Run GA Synch Manually

You can run the synch manually by utilizing the built in frotnend controller to the run the sync. The controller is as follows:- 

scommerce_gatransactionsync/index/sync

Visit the frontend page pointing to the controller in the URL, please refer to below link as an example:-

https://demo.scommerce-mage.co.uk/scommerce_gatransactionsync/index/sync

If you have a question related to this extension please check out our FAQ Section first. If you can't find the answer you are looking for then please contact support@scommerce-mage.com.


Revision #1
Created 23 June 2025 12:32:55 by scommerce
Updated 23 June 2025 13:36:51 by scommerce