Track install source with Google Analytics

Hi guys, I am using this plugin: Google Analytics - Ionic Documentation and it’s working great for view tracking. However, I would like to get some campaign details when a user clicks a download link from Facebook, Instagram, or Email. My download link would look something like this:
Is there anyone who managed to retrieve these campaign details within the app?

There is a method from the plugin which should get campaign name, but it doesn’t seem to work:

this.googleAnalytics.getVar('cn').then(res => console.log('SUCCESS', res)).catch(err => console.log('ERROR', err));