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-m2bin/magento module:enable CustomGento_YouTubeNoCookiebin/magento setup:upgradebin/magento setup:di:compilebin/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_YouTubeNoCookiebin/magento setup:upgradebin/magento setup:di:compilebin/magento cache:flush
The uninstallation procedure depends on your setup:
bin/magento module:uninstall CustomGento_YouTubeNoCookiebin/magento setup:di:compilebin/magento cache:flush
bin/magento module:disable CustomGento_YouTubeNoCookiebin/magento setup:di:compilebin/magento cache:flushrm -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