I'd tell him to support the Civil Rights Act of 1964 (while simaultanously making clear that he opposed affiramtive action and welfare handouts). Also, I'd tell him to pick a charismatic moderate as VP, to aggressively respond to LBJ's smear tactics, and to avoid making stupid comments and try to moderate his image.
Sure, if he wanted the electoral map to look like this:
As least his reputation and legacy would have been better. He mgiht ahve been able to win some Midwestern and Western states in this scenario, though. Even though Goldy was pretty much screwed in 1964 no matter what.