Minecraft hosting datapacks normally use something called functions, which run every tick, and can cause a lot of lag. It's recommended to find a plugin alternative whenever possible.
A datapack is a .ZIP file that you can use to customize your Minecraft experience without using mods.
Installing a datapack is quite simple. Once you’ve downloaded the datapack you want to head over to your server management tab.
Now go to your server and open “file manager” in the menu.
Select the world you want to install the datapack onto.
Open or create and open the folder “datapacks” and Click the upload button in the top right corner and select upload your datapack. You can also drag and drop the datapack .zip file.
IMPORTANT
Remember that you need to upload the .zip datapack file, you don't need to unzip it.
Now restart your server, feel free to open a ticket if you need any assistance.
NOTE
You can verify if the datapack was correctly installed by using the command /datapack list enabled.