YouTube NoCookie for Magento 2 makes sure that all YouTube product videos are always inserted via the cookie-free domain youtube-nocookie.com. It tries to detect all possible YouTube URLs for that and adapt the URL accordingly to always be compliant with the current EU rules.
- Magento >= 2.3
The installation procedure highly depends on your setup. In any case, you should use a version control system like git and test the installation on a development system.
composer require customgento/module-youtube-no-cookie-m2
bin/magento module:enable CustomGento_YouTubeNoCookie
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
- unzip the downloaded files
- create the directory
app/code/CustomGento/YouTubeNoCookie/
:mkdir -p app/code/CustomGento/YouTubeNoCookie/
- copy the unzipped files to the newly created directory
app/code/CustomGento/YouTubeNoCookie/
bin/magento module:enable CustomGento_YouTubeNoCookie
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush
The uninstallation procedure depends on your setup:
bin/magento module:uninstall CustomGento_YouTubeNoCookie
bin/magento setup:di:compile
bin/magento cache:flush
bin/magento module:disable CustomGento_YouTubeNoCookie
bin/magento setup:di:compile
bin/magento cache:flush
rm -r app/code/CustomGento/YouTubeNoCookie
If you have any issues with this extension, feel free to open an issue on GitHub.
(c) 2020 - present CustomGento GmbH