How to Add a goal to dynamically created div

how do i add a goal if my anchor link is created dynamically