I have affiliate code that needs to be inserted in posts. The code includes both CSS (<style></style>) and JavaScript (<script></script>).
How can I insert the code directly into a post and have it work? I've turned off the Visual Editor and tried adding <literal> tags around the code.
I've put the code into an Inline Widget and inserted the widget into a post ... this works fine. However, for tracking purposes, I need to be able to vary certain parts of the code from post to post. So I need to add the code directly in a post, as opposed to created a huge number of Inline Widgets.