Do UC's care if I take transferable classes that don't count for my major pre-reqs or Gen Ed?

I’m taking two history classes this summer for the simple reason of raising my GPA. They’re classes I’m interested in but I’ve already taken enough history/social science classes to fill up my IGETC. Do the UC’s care if I take classes that aren’t relevant for my major but simply taking to raise my overall GPA?

Not at all. Take as many as you want.