The three essential elements of a retaliation claim are:
That you engaged in a protected activity
That your employer took an adverse action against you
That there is a causal link between the two
This means you need to show that the protected activity was a motivating factor in the adverse action. Often, the best way to do this is to show that the adverse action occurred shortly after the protected activity or that there is a pattern of retaliatory behavior.