I'm trying to use Ezoic for my ads, and one of the obstacles I'm running into is adding categories to my blog posts. I have them set up in Squarespace, but Ezoic is looking for them as meta data. Specifically, they are looking for the data is this format:
<meta name="category" content="Food">
I would prefer not to manually add this line to every page, so I was wondering if it is possible (and how) to use a JS script to generate this meta data based on the Squarespace category. To add a little more complexity, I use multiple categories, but only one is relevant for this, so I'd also like to be able to add a conditional statement to return only the correct category.
I would appreciate it if someone could point me in the right direction.