Shoffi Docs
  • 👋Getting Started
  • 💻For App Owners
    • Adding a new app
    • Google Analytics integration
    • The affiliate terms
    • Managing affiliates
    • Invite affiliates
    • Paying affiliates
    • Managing your apps
    • Managing your team
    • Integrations (Webhooks)
  • 💳Subscriptions
    • Choosing/Upgrading a plan
    • Plan limits
    • Changing billing details
    • Downgrade and cancellation
    • Frozen and Deactivated accounts
  • 🔀The Shoffi API
    • Introduction to Shoffi API
    • Get All Affiliates
    • Get Affiliate Info
    • Create New Affiliate
    • Update Affiliate Terms
    • Affiliate Payment Request
  • 🔗For Affiliates
    • Connecting to new apps
    • Referral links
    • Manual referrals
    • Payout requests
    • Performance analytics
    • Connected app Information
  • General
    • The markets
    • The affiliate commision
    • Disputes
Powered by GitBook
On this page
  • Jump to
  • Setup Google Analytics
  • 1. Set Up or Access Your Google Analytics Account
  • 2. Navigate to the Admin Section
  • 3. Initialize a New Account
  • 4. Provide an Account Name
  • 5. Specify Property Details
  • 6. Enter Business Information
  • 7. Define Business Objectives
  • 8. Accept Google Analytics Terms of Service
  • 9. Set Up Data Collection
  • 10. Create a Web Stream
  • 11. Record the Measurement ID
  • 12. Obtain the API Secret
  • 13. Generate the API Secret
  • Connect your Shopify app listing
  • 1. Access the Shopify Portal
  • 2. Select Your App
  • 3. Input Google Analytics Details
  • Connect to Shoffi
  • 1. Configure Custom Definitions
  • 2. Give read-only access to Shoffi
  • 3. Approve Access to Shoffi
  • 4. Integration Completed
  1. For App Owners

Google Analytics integration

PreviousAdding a new appNextThe affiliate terms

Last updated 19 days ago

Please Note! This is a complete guide to opening and setting up a Google Analytics account for your Shopify app listing and connecting it with Shoffi. If you’ve already set up your Google Analytics for the app listing, jump to Connect to Shoffi.

Jump to

Setup Google Analytics

Connect your Shopify app listing

Connect to Shoffi

Setup Google Analytics

1. Set Up or Access Your Google Analytics Account

Visit and sign in using your Google account credentials.

2. Navigate to the Admin Section

Click on the gear (cog) icon located at the bottom left to access the Admin panel.

3. Initialize a New Account

If you are starting a fresh account, you can skip the initial setup. Otherwise, click the Create button and select Account.

4. Provide an Account Name

Enter a suitable name for your account and then click Next to proceed.

5. Specify Property Details

Input a name for your property, choose the appropriate timezone and currency, and then click Next.

6. Enter Business Information

Fill in your business category and size, then click Next to continue.

7. Define Business Objectives

Select the relevant business objectives that align with your goals and click Create.

8. Accept Google Analytics Terms of Service

Choose the terms applicable to your region. When ready, accept the terms by clicking the I Accept button.

9. Set Up Data Collection

Add a data stream to collect data from Shopify for your application. Select the Web platform.

10. Create a Web Stream

Enter your Shopify app’s URL, assign a name to the stream, and then click Create and continue.

Please Notice! Make sure the "Website URL" is the full URL of your app listing, including the slug (ex. https://apps.shopify.com/my-demo-app).

11. Record the Measurement ID

Take note of the Measurement ID as this will be necessary for integration with Shopify via the Partner portal.

12. Obtain the API Secret

On the same page, retrieve the API Secret by clicking on Measurement Protocol API secret.

13. Generate the API Secret

You may need to review and accept the terms first.

Next, click the Create button.

Assign a nickname to the API Key, such as “Shopify App Listing,” and click Create.

Ensure you save the secret value (API Secret) for future use.

Connect your Shopify app listing

1. Access the Shopify Portal

2. Select Your App

From the left-hand menu, choose Apps.

Select your specific app.

Navigate to Distribution in the left menu.

Click on the Manage Listing button.

Now click Edit on your primary listing.

3. Input Google Analytics Details

Scroll to the Tracking Information section and enter your Measurement ID and API Secret in the designated fields. After entering the information, click Save.

Connect to Shoffi

1. Configure Custom Definitions

Custom definitions allow you to collect additional data, such as identifying which store is installing your app.

First, click the gear icon to return to the main Admin page.

Next, select Custom Definitions.

Click on Create Custom Dimension.

Enter shop_url in both the Dimension Name and Event Parameter fields, then click Save.

Repeat this process to add another custom dimensions called ga_session_id.

Once you finished, you should see both Custom Definitions listed:

2. Give read-only access to Shoffi

Note! The Analytics integration section will show up only after you verified your Shopify Partners details.

Navigate to your Shoffi's new app/edit app page.

Click the Connect Google Analytics button and select the Google account you used earlier to create your Google Analytics account.

3. Approve Access to Shoffi

A pop-up will show, asking you to approve the read-only access.

By clicking Approve, you grant us permission to read your Google Analytics data.

4. Integration Completed

Once the integration is successfully completed, you’ll be redirected back to Shoffi, and your app will be automatically approved.

Log in at .

💻
partners.shopify.com
analytics.google.com