How to Add YouTube Videos in Magento 2 Product Pages

How about having an in-store sales person helping a potential customer to make a purchase in your Magento 2 store just like any other offline store? ?

Product videos are just like that! Videos bring a product to life! Videos can explain a product in a better way.

The store owners need to convince visitors about their products or services. Humans are visual creatures and respond to visual data more effectively rather than any other data types. So, adding videos on product pages describing the product and its features is the best way to present your products.

Before learning to add YouTube videos in Magento 2 product pages, take a look at the advantages you’d enjoy by doing so:

  1. Deliver your product usability and features quickly
  2. Get the visitors to focus on what you want to sell and get them to spend more time on your site.
  3. Videos surely drive traffic with the improved SERPs.
  4. Don’t let your visitors get bored with texts. Be entertaining!
  5. Stand out from the competitors’ crowd
  6. Increase the number of returning users with videos having tutorials, and consequently expose them to new buying opportunities!

According to Hubspot, 73% more visitors who watch product videos will buy and 58% of shoppers think that companies with product videos can be trusted! Keeping this fact in mind, we have come up with the tutorial to add YouTube videos in Magento 2 product pages. I have tried to explain the process step by step to make it easy to implement!

Steps to add YouTube videos in Magento 2 Product Pages:

  1. Get the YouTube API Key
  2. Integrate YouTube API key to Magento 2
  3. Integrate YouTube Video URL to Product

Let’s see each of the above steps in detail:

    1. You need to login to your Google account and go to Google Developers Console.
    2. Land on API library page where you need to click on YouTube Data API, enable the API by clicking on Create Project.
    3. Navigate to Credentials tab, click Create Credentials
    4. Select the API Key option to get an API.
    1. From the admin panel, navigate to Stores > Configuration > Catalog. From the Product Video section, insert the YouTube API key, generated from the Google Developers Console. Click Save Config.Add API key in Magento 2
    1. Now move to Catalog > Products > Edit a product.  Navigate to Images and Videos section of Product and click on Add Video.2_add-video-in-product
    2. Enter the Product video URL from YouTube. If the API key is invalid or you haven’t added it yet, you will get an error message.3_Youtube-API-key-error-message
    3. After adding product video URL, click to save and jump back to the product page to check the video added.4_Add-video-details

That’s it!

As far as Vimeo is concerned, the process is much simpler. All you have to do is paste video URL, edit the description and hit save!

As adding a video is quite effective than adding a number of pictures, follow the above tutorial to add YouTube video in Magento 2 product pages, give buyers quality information and build trust.

You may ask any doubts on the topic in the comments section below.

Rate the post with 5 stars and appreciate us to come up with more such tutorials!

5
(based on 11 Reviews)
How to Add YouTube Videos in Magento 2 Product PagesAuthor Magento Badge

Sanjay Jethva

Sanjay is a co-founder at Meetanshi. He is a Certified Magento Developer who loves creating Magento E-commerce solutions. Owing to his contributions in Magento Forums and posting solutions, he is among the top 50 contributors of the Magento community in 2019. When he is not engrossed with anything related to Magento, he loves to play cricket.

2 Comments

Leave a Reply

Your email address will not be published.