Dendritic activation and action potentials lead to the expression of distinct heterodimers of the inducible transcription factor NPAS4, which show distinct DNA binding patterns; these patterns were recapitulated on exposure of mice to a novel environment.