In the age of instant messaging, sharing product details directly through WhatsApp is becoming increasingly popular among online shoppers. The Magento 2 WhatsApp Share extension is designed to seamlessly integrate with your Magento 2 store, allowing customers to share products with friends and family via WhatsApp. This simple yet powerful tool enhances social engagement and helps drive more traffic to your store, providing a direct marketing channel to potential customers.
The Magento 2 WhatsApp Share extension integrates with your product pages, adding a WhatsApp sharing button. When a user clicks on the button, a WhatsApp chat opens with a pre-filled message that includes the product details, such as the name, price and link to the product page. This makes it easier for customers to share your products with their contacts, potentially increasing visibility and driving traffic to your store.
- Enable WhatsApp sharing globally, or customize it for specific products or categories.
- Utilize UTM tracking to monitor traffic from WhatsApp shares in Google Analytics.
- Supports WhatsApp sharing via both the mobile app and web versions.
The WhatsApp Share button seamlessly appears on product pages, allowing customers to easily share product details with their contacts. Its clean, minimal design ensures it doesn’t distract from the product, maintaining focus on the item itself. Optimized for both mobile and desktop devices, the button ensures a smooth sharing experience across all platforms. When clicked, users are instantly redirected to the WhatsApp app with a pre-filled message that includes the product link, ready to be shared.
Admins can easily customize the placement of the WhatsApp share button on product pages, choosing its position—whether on the product image, below the description, or anywhere that fits the store's layout. The button’s size, color, and text can also be adjusted to match the store’s branding, ensuring it aligns with the overall design while maintaining optimal visibility.
The extension does not require any third-party services or APIs, ensuring that the performance of your website remains unaffected. This makes it a reliable and secure solution for WhatsApp integration.
Encouraging customers to share their favorite products can create organic word-of-mouth marketing. With the WhatsApp Share extension, you are tapping into a fast-growing platform that’s widely used for both personal and business communication.
To install the Magento 2 WhatsApp Share extension, follow these simple steps:
Extract the zip file and upload the extension to the root directory of your Magento 2 installation using FTP.
- php bin/magento setup:upgrade
- For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
- For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
- php bin/magento cache:flush
To configure the extension, log in to your Magento 2 admin panel and navigate to Stores > Configuration > WhatsApp Share. Here, you’ll find several settings to customize the extension.
- WhatsApp Share: Enable or disable the WhatsApp Share extension.
- Enable WhatsApp Share: Choose whether to enable the extension globally, for specific categories, or for individual products.
- Show WhatsApp Share Button on Category Page: Set to "Yes" to display the WhatsApp share button on category pages in addition to product pages.
The sharing settings allow you to configure how users can share your store's products through WhatsApp.
- WhatsApp Share Button Type: Select the preferred type of WhatsApp Share button.
- Custom Sharing Message: Add a personalized message to be shared along with the product details.
- Product Name: Enable this option to share the product name on WhatsApp.
- Product Description: Enable this option to include the product description in the WhatsApp share message.
- Product Price: Enable this option to share the product price via WhatsApp.
- Deal On: Select a deal to share from the dropdown list. You can choose between "Special Price" or "Discount." If you select "Special Price," ensure you have set special prices for your products. If you select "Discount," configure the catalog or shopping cart price rule in the backend and provide a custom message to share the discount deal via WhatsApp.
- Special Price Message: Enter a custom message to share the special price deal with WhatsApp contacts.
UTM tracking helps analyze visits and conversions in Google Analytics by appending a tracking code to the shared URL. You can configure the UTM Tracking Settings as follows:
- UTM Tracking: Enable UTM Tracking for WhatsApp sharing here.
- Campaign Source: Set the source for tracking in Analytics.
- Campaign Medium: Define the medium for tracking in Analytics.
- Campaign Name: Assign a name for tracking in Analytics.
Short URLs are easier to manage, and this extension allows you to use the Bitly URL shortener when sharing product URLs on WhatsApp. Here’s how to configure the Bitly Short URL settings:
- Bitly Short URL: Enable the Bitly URL shortener to share shortened product URLs.
- API Key: Enter your Bitly API key to enable short URLs for sharing on WhatsApp.
- To obtain your Bitly API key, register and log in to your Bitly account. Then, go to Profile Settings and click on Generate Access Token.
Re-enter your Bitly password and click on Generate Token.
Navigate to Catalog > Categories, select the category for which you want to enable WhatsApp sharing, and set the option to YES.
- WhatsApp Share: Enable WhatsApp sharing for this specific category
Navigate to Catalog > Products, select the product for which you want to enable WhatsApp sharing, and set the option to YES.
- WhatsApp Share: Enable WhatsApp sharing for this specific product.
After successfully configuring the extension, the WhatsApp Share button will be enabled on both the Category and Product Pages, along with features like UTM Tracking and more, as shown below.
- WhatsApp Share on Category Page
If you’ve enabled the share button on the category page, it will appear here.
- WhatsApp Share on Product Page
- Contact Selection in WhatsApp
When users click the WhatsApp share button, they are redirected to the web or app version of WhatsApp, depending on whether they are using a desktop or mobile device. In the app, they will be prompted to choose a contact to share the product details with.
- Sharing in WhatsApp
- UTM Tracking Enabled in Shared URL