Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section

Backend Configuration (Admin side)



Section


Panel

  • Enable: Set "Yes" to enable the module/extension. It will enable GA4 tracking for your store. 


Section


Panel

  • Client ID: Provide Client ID provided from Google Developer Console Apps.
  • Client Secret: Provide Client Secret generate from Google Developer Console. 


Expand
titleSteps to Create Google Analytics Client ID and Client Secret
  1. Step 1
    1. Navigate to https://console.cloud.google.com/ and select an existing project or create a new one
    2. At the top of the screen, search for Analytics API
    3. Enable the API
  2. Step 2
    1. On the same Google Analytics API page, go to Credentials
    2. Click the Create Credentials button, and then from the menu, select API key
  3. Step 3
    1. On the same Google Analytics API page, go to the OAuth consent screen
    2. Fill in the App name, User support email, and Developer contact information fields
    3. Click the Save and continue button until the last page, Summary, without changing anything on Scopes and Optional info subpages
  4. Step 4
    1. Click the Create Credentials button, and then from the menu, select OAuth client ID
    2. Select Web Application, enter Name and paste the Authorized redirect URIs from your MainWP Dashboard > Extensions > Google Analytics > Add Account page, and click the Create button
  5. Step 5
    1. On the Credentials page, click Click Download OAuth client to your computer for later
  6. Step 6
    1. Click the OAuth consent screen, then click Publish App button & click Confirm Button
  7. Step 7
    1. Locate the Credentials you saved to your computer & open them in a text editor of your choice.
    2. Navigate to MainWP > Extensions > Google Analytics > Add Account
    3. Enter your Credentials & click Connect Account
    4. Note: ( PROJECT ID = ACCOUNT NAME )
  8. Step 8
    1. Select Your Google Analytics Account
    2. Click Continue to give consent to your MainWP Dashboard
    3. Click Advanced on the SSL Warning ( don’t worry about this – you’re ok )
    4. Click Goto Unsafe Website.

Done: Please check the Manage Accounts tab to verify a successful connection

Important Notes: If the process keeps failing for you, please try a different browser and ensure that any ad-blocker add-ons in your browser are disabled.



Section


Panel

  • GTM Javascript Code: Provide GTM Javascript Code here with your unique GTM tracking ID.
  • GTM Non-JS Code: Provide GTM Non-Javascript Code here with your unique GTM tracking ID.


Section


Panel

  • Account ID: Provide GTM Account ID. 
  • Container ID: Provide GTM Container ID.  
  • Measurement ID: Provide GTM Measurement ID. 


Section


Panel

  • Product Identifier: Select Product Identifier as either SKU or ID to share with Google Analytics. 
    • SKU - Magento Product SKU will be shared with GA4 APIs 
    • ID - Magento Product ID will be shared with GA4 APIs
  • Currency: Select currency as either Base Currency or Store Currency to share with Google Analytics. 
    • Base Currency: Magento Store's Base Currency will be shared with GA4 APIs
    • Store Currency: Magento Store's Store Currency will be shared with GA4 APIs 
    • Example: 
      • Magento Store Base Currency is USD, and Store Currency is GBP. If your GA4 Panel shows USD currency, then select Base Currency, but if your GA4 Panel is configured to show data in GBP, then select Store Currency in MageDelight GA4 currency configurations. We assume that you have multi-currency enabled in Magento as USD and GBP (Store View). 
  • Enable Brand: Select "Yes" to enable the brand. It will share values as Brands with GA4 APIs. 
    • Brand Attribute: Provide Magento Attribute to share values with Google Analytics as Brands. I.e., Magento Product Attribute "brand" can be set as GA4 brand. 
  • Enable Product Variant: Select "Yes" to enable the product variants to be shared with GA4 APIs. 
    • Child vs Parent: If Child shared, then Child Products information will be shared with GA4 APIs else, Parent Products information will be shared with GA4 APIs. It will be helpful with Magento configurable products. I.e., Parent SKU "MT11" and child SKU "MT11-S-Blue" is set in Magento. For Parents, it will share MT11, but for child SKU, it will share "MT11-S-Blue" with GA4. 


Section


Panel



Section


Panel




Section

Backend Functionality



Section


Panel



...