Connect a store to Gorgias: Magento 2Updated an hour ago
Who can use this feature?
Connecting your Magento 2 store to Gorgias gives your support team direct access to customer order history and purchase data alongside every ticket — no tab-switching required. With your store connected, you can view customer profiles enriched with Magento 2 data and use that context to resolve support tickets faster.
What to expect
With your Magento 2 store connected to Gorgias, you'll have access to:
- Customer profiles Customers who have a matching profile in your Magento 2 store will have their data present in Gorgias, including their order history.
- Order data Without leaving Gorgias, you can view order details for each customer directly from the ticket sidebar.
- Article recommendations Gorgias can automatically suggest relevant help center articles to customers based on their questions, powered by your connected store data.
Connect a Magento 2 store
Connecting a Magento 2 store is a two-step process: first you install the Gorgias extension in your Magento 2 store, then you connect it to your helpdesk. Gorgias offers two connection methods — one-click (recommended) and manual. Use the manual method only if your Magento store has a firewall that prevents the one-click connection from working.
Step 1: Install the Gorgias extension
Before connecting in Gorgias, you'll need to install the Gorgias extension on your Magento 2 store. Follow the Magento 2 extension installation instructions to complete this step. The connection will not work if the extension is not installed first.
Get the Gorgias extension from the Magento Marketplace.
Connect to your Magento store's server via SSH with your developers' assistance.
Run the following commands:
1composer require gorgias/module-magento-connect2bin/magento se:up3bin/magento se:di:co4
Once done, return to your Gorgias account to complete the setup.
Step 2: Connect in Gorgias
One-click connection (recommended)
- From your helpdesk, click the Settings icon in the bottom-left corner.
- In the menu, locate Workspace, then select Store.
- Click Add new store in the top-right corner, then select Magento 2.
- Click Connect Magento 2, then select Connect in 1 click.
- Enter your store admin URL.
- Click Connect App. You'll be redirected to your Magento store to authorize the connection.
- In Magento 2, click Create. Magento will redirect you back to Gorgias.
Manual connection
Use this method if your Magento store has a firewall that prevents the one-click connection.
- From your helpdesk, click the Settings icon in the bottom-left corner.
- In the menu, locate Workspace, then select Store.
- Click Add new store in the top-right corner, then select Magento 2.
- Select Connect manually.
- Enter your store admin URL.
- Go to the Magento admin dashboard, then navigate to Settings > Integrations.
- Click Add New Integration and name it Gorgias - Customer Service Helpdesk. Note: any other name used here may result in an error.
- Enter
https://webhooks.gorgias.ioas the callback URL. - Enter your password.
- In the left panel, click API, and then select these permissions:
- Sales > Operations > Orders > Actions > View
- Sales > Operations > Orders > Actions > Edit
- Sales > Operations > Orders > Actions > Cancel
- Sales > Operations > Orders > Actions > Credit Memos
- Sales > Operations > Shipments
- Sales > Operations > Credit Memos
- Customers (and then uncheck the All Customers, Now Online, and Customer Groups nested permissions)
- Carts > Manage carts
- Click Save in the top-right corner.
- From the list of integrations, under Gorgias - Customer Service Helpdesk, click Activate.
- Click Allow.
- Copy all credentials, then click Done.
- Go back to the Gorgias interface and enter your store admin URL and the Consumer key, Consumer secret, Access token, and Access token secret that you copied from your Magento admin panel.
- Click Connect App.
Once connected, Gorgias begins importing your Magento 2 customers in the background. Depending on your store size, this import may take some time. You'll receive an email when the import is complete.
Connect channels
Assign specific channel integrations to each store so that your customer tickets can be traced to the store they came from. Once you assign a channel to a store, you can filter your support tickets to create views, or create rule conditions based on store, rather than just by channel.
- From your helpdesk, click the Settings icon in the bottom-left corner.
- In the menu, locate Workspace, then select Store.
- Search for and select the store you'd like to manage.
- Click the Channels tab.
- Select a channel from the list.
- Use the side panel to set up the channel, then click Save Changes.
Update an existing installation
If you're upgrading to Magento 2.4 from an existing installation, ask your developer to follow these steps during the upgrade to avoid any potential lag on your Magento server:
- SSH into your Magento server.
- Put your store into maintenance mode.
- Connect to your database.
- Run this query:
DELETE FROM gorgias_sync_log WHERE sync_flag = 1 OR sync_fail_count > 5; - If it takes too long, you can interrupt it and run
DELETE FROM gorgias_sync_log WHERE sync_flag = 1 OR sync_fail_count > 5 LIMIT 10000;multiple times, until nothing more is deleted.
FAQ and troubleshooting
Why wasn't a tracking URL generated for my order?
Magento doesn't send us tracking URLs but tracking numbers instead, which is why we generate URLs for you based on the carrier associated with the shipment.
We can only generate URLs for the following carriers:
- USPS
- UPS
- FedEx
- Canada Post
When the carrier is Other, we aren't able to generate the tracking URL due to API limitations.
Why can't I open a customer link that's displayed in the sidebar widget?
The customer link in the widget won't work properly if you have enabled adding a secret key to URLs — if this option is enabled, the link will always take you to the general dashboard.
The secret key is generated at the beginning of the Admin session, and it changes each time a new session is opened to prevent any redirect, which is exactly what Gorgias does in the widget.
If you want the link to redirect to the right page, you have to disable that feature by setting Stores > Settings > Configuration > Advanced > Admin > Security > Add Secret Key to URLs to No.