"e.g." isn't used correctly here. It's intended use is as a connector linking a clause to examples supporting that clause. You can't simply substitute "for example" with "e.g." anywhere in a sentence and expect it to function correctly.
Regardless, these Latin abbreviations best avoided entirely due to the surprising number of readers who don't understand them.