AdWords conversion tracking from AngularJS

Inspired by a blog post of Zain Zafar, I implemented my own version of a Google AdWords conversion tracking from AngularJS.

Load the AdWords code from your HTML file:

Then add the AdWords service to your Angular app:

The last thing is to call the service from your controller when the conversion happens: