Exporting data for Google Earth

Hi all,

I want to export all of my activities to view in google earth so I can create my own heat map type of thing.

I have seen different codes you can paste into your browser to download them but they seem not to work anymore.

Does anyone have any idea how to do this, apart from the data export from garmin itself?

Thanks in advance