Flying Spares, provider of spare parts for vintage cars and high quality marques, displaying a Rolls-Royce from their eCommerce Shopify development from magic42

Flying Spares

International B2B Magento with 240k catalogue, Khaos Control Integration and digital marketing.
See our work
Stone Computers Case Study by magic42

Stone Computers

Adobe Magento Commerce B2C, B2B portal and PunchOut sites and bespoke loan payment solution.
See our work
Alan Paine quality clothing retailer showing their brand, as featured in their case study for their eCommerce website with magic42

Alan Paine

Multisite, B2C migration from Magento to Shopify Plus with ERP integration.
See our work
Haws Watering Cans case study after eCommerce development agency, magic42, migrated their site to Shopify

Haws Watering Cans

B2C eCommerce strategy, UX improvements, AdWords and Klaviyo email marketing management.
See our work
Alan Paine quality clothing retailer showing their brand, as featured in their case study for their eCommerce website with magic42

Alan Paine

Multi-site, B2C migration from Magento to Shopify Plus with ERP integration.
Find out more
Roger Clark Motorsport automative eCommerce client case study from magic42, showing high quality silver cars in a slick garage

Roger Clark Motorsport

B2C and B2B migration of bespoke, global automotive parts website to Shopify.
Find out more

Call Us

Speak to a Shopify expert:

0121 663 6360

Get in touch 
magic42 - eCommerce development experts born from retail success

Born from a retailer

Read the full story of how our award-winning retail business developed into magic42.
Find out more
Envision Workshop documents as an outcome from our replatforming and migration meeting for your eCommerce website

How we'll work with you

Find out what it's like to partner with us and the steps involved for your eCommerce project.
Find out more
Alex Ashman, director of magic42, in a bumper car with a huge grin on his face as he mingles with his eCommerce development team at magic42

Looking for a career with us?

Take a look at what it's like to work at magic42 and the opportunities we offer.
Find out more

Call Us

Speak to our eCommerce experts:

0121 663 6360

Get in touch 

YouTube Videos on a Magento 2 Product Page - How to get a YouTube API Key

Author: 
Alex Ashman
Published: 
May 21, 2020

Encouraging visitors on your eCommerce store to engage with your products, while converting this enthusiasm into a sale is vital. There are many ways of achieving this, through informative copy and attractive imagery. One aspect that often is overlooked though is the power of video.

Videos may demonstrate the features of a product, how to guides on best uses or instructional demonstrations of installation. They provide confidence, while also providing a total audio and visual experience that can be your best engagement tool.

Embed YouTube videos on Magento 2

So how do you add a YouTube video to Magento 2… Let us show you how.

1 - Obtain a YouTube API key

The very first step is to get yourself a YouTube API key, which will give Magento the access it needs to access the data from YouTube to populate the video information and embed it within your product page.

  • Visit the Google API Library
  • Select ‘YouTube Data API v3’
  • Select ‘Enable’
  • Select ‘Create Credentials’ > ‘API Key’
  • Copy the text which displays your unique API key

2 - Adding your YouTube API key in Magento 2

Now let’s head back to your Magento store to enter the YouTube API key:

  • On the sidebar of Magento go to Stores > Settings > Configuration
  • Under ‘Catalog’ select ‘Catalog’
  • Under the ‘Product Videos’ area, paste your previously copied YouTube API key into the required field
  • Save

3 - Adding a YouTube video to a Magento 2 product page

Now to tell Magento to insert the video on to a Product page...

  • Visit the product page edit view you wish to add the video to
  • Go to the ‘Images and Videos’ section
  • Click ‘Add Video’
  • Enter the URL of the video you wish to embed
  • Click the ‘Get Video information’ button to fill in a lot of the details and customise as required
  • Save your product

All that is left is to check the frontend of the website to ensure your video has appeared.

Remember to clear your cache under ‘Cache Management’ for good measure if you find the video is not yet visible.

Embed YouTube videos on Magento 2

We are a Magento development agency with 20 years eCommerce experience; for any help or advice on migrating, updating or maintaining your Magento eCommerce site, contact our team today.

magic42 logo
magic42 is a UK-based eCommerce development agency, born from an award-winning retailer. Having grown with the industry since the year 2000, we provide our unique perspective to help clients get the best from their eCommerce platforms.
Company No. 11572347 VAT No. 310 2436 61
Adobe Solution Partners Bronze Logo, used by verified Adobe expertsShopify Partners Logo (as used by Shopify Development Partners)
© Copyright 2024 magic42 Limited - All Rights Reserved
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram