The topic you referred to shows you how to do this for a specific product. Check the screenshot for RU Add FREE Coffee. You can follow that method, then for the add free item rule, use something like this to ensure only added for your specific portion
You should also make sure you have a rule to remove the free item if the portion is changed, you can use Order Portion Changed event as described in this post: