GO:0004161: dimethylallyltranstransferase activity
Catalysis of the reaction: dimethylallyl diphosphate + isopentenyl diphosphate = diphosphate + geranyl diphosphate.