Custom site variables can only be attached to page events.
Custom global variables, on the other hand, can be attached to both page and click events, but not other type of events like internal search events.
More information on custom global variables are available in this article: Custom Global Variables