Loading...

ScandiPWA GTM Extension

ScandiPWA GTM Extension

Install the ScandiPWA GTM extension for e-commerce stores to integrate Google Tag Manager with your ScandiPWA store easily. This extension lets you track user behavior, optimize marketing campaigns, and boost website performance.

Analyze your customer data to collect valuable insights and make data-driven decisions to boost your online store's performance. This can help you improve your store’s customer retention, increase conversion rates, and drive more sales.

Installation Process

  • Remeber to add export const gtm_id = "{your_gtm_id}";
  • Follow the path: @elightwalk/gtm/src/utils/code.ts
  • Replace {your_gtm_id} with your actual GTM ID

Step 1: Create Folder

Create Packages folder in your scandipwa root.

Step 2: Upload Folder

In your Scandipwa root directory, upload the @elightwalk/gtm folder to your packages folder.

Step 3: Add Link in Dependencies

Add file:packages/@elightwalk/gtm to your extension in dependencies inside the package.json file of Scandipwa root.

      "scandipwa": {
          "extensions": {
              "@elightwalk/gtm":true
         }
      }

Step 4: Add Extension in ScandiPWA

Add link to your extension in scandipwa root inside the package.json file of Scandipwa root

      "scandipwa": {
          "extensions": {
              "@elightwalk/gtm":true
         }
      }

Step 5: Scandipwa Root Commands

Fire below commands in your terminal

      npm install  
      BUILD_MODE=magento npm build
Congratulations, you have successfully installed the ScandiPWA GTM Extension!