Catalysis of the reaction: dimethylallyl diphosphate + isopentenyl diphosphate = (2E)-geranyl diphosphate + diphosphate.
dimethylallyl-diphosphate:isopentenyl-diphosphate dimethylallyltranstransferase activity