Mine is attached to the very top edge of the windshield on my X, basically above the drivers left shoulder.
In my 3, I place it on the front edge of the top glass.
Basically the transponder needs a clear shot, straight up, if possible. I doubt that it would work at all in the frunk.