Do you want to upload product videos in Magento 2 from YouTube?
Uploading the videos directly to the store will increase the page size and make it load slowly. Speed is critical for ecommerce websites.
The solution is to upload the video to YouTube and then fetch it to your store. But to fetch the YouTube video through the link, you must add YouTube API to Magento.
In this quick tutorial, we will learn to upload videos in Magento 2 from YouTube.
Why use Product Video?
Advantages of having a product video on product pages:
- Video increases the pages viewed per session by 127 percent for a website.
- Videos help consumers understand products better, according to 71 percent of consumers.
- Visitor purchases are 73% higher when they watch product videos.
- Video is preferred over other marketing content by 71% of consumers.
- An increase of 37 percent in add-to-cart conversions
- An ecommerce company with product videos would be more likely to sell products to consumers, according to 44 percent of consumers.
- The number of pages viewed per session on an ecommerce site increases by 340 percent when videos are included.
3 Steps to Upload Product Videos in Magento 2
Follow the steps to upload product video in Magento 2:
#1 Get your YouTube API Key
First we need the YouTube API Key to connect the YouTube channel with the Magento catalog.
- Login to your Google Account
- Go to Google Developers Cloud
- Search for Youtube to get all YouTube API
- Enable the YouTube API if its not On.
- If already enabled, go to the credentials
- Click on + Create Credentials and select API key
- An API key will be created
- Copy the API Key
#2 Configure in Magento
Now we have to add the API key to the Magento store.
- Login to the Magento admin
- Navigate to Stores > Settings > Configuration
- Choose Catalog from the panel
- Click on Catalog from Catalog tab
- Expand the Product video tab
- Pase the API key to YouTube API Key field
Save the configuration and clear Magento cache.
#3 Link to Video
Now you have to add the video to the product.
- Go to the Catalog > Product
- From the Product Detail, click on Add Video in the Images and Videos.
- Click on Add Video
- Paste the YouTube URL of the Video.
Title: Add the title to the Video
Description: Give video a quick description.
Preview Image: Add preview image from the computer
Assign the role to the video, mark the corresponding checkbox of each Role:
- Base Image
- Small Image
- Swatch Image
- Thumbnail
- Hide from Product Page
When everything is done, click on Save to save the changes. Finally, clear the Magento cache to update the store.
Also Read:
- How to Remove and Export Subscribers in Magento 2?
- How to Configure Catalog Search in Magento 2
- How to Set Magento 2 Search Weight?
- How to setup Advanced Pricing in Magento 2?
Wrap Up
An image is worth 1000 words. And a video is worth thousands of photos.
A product video can show the user what a product looks like from all the angles and settings. Adding product video will significantly improve the page value and make it easier for the customers to judge the product.
I hope this tutorial helps you add the product videos in Magento 2. If you encounter any issues, feel free to leave them in the comments.