Page fragments have several important elements you need to include to enable tag functionality:
Tag Library Declaration
DSP Page Initialization
Gear Environment Initialization