Skip to content

Instantly share code, notes, and snippets.

View marcusschiesser's full-sized avatar

Marcus Schiesser marcusschiesser

View GitHub Profile
@marcusschiesser
marcusschiesser / launchrock_adwords.js
Created September 22, 2016 17:34 — forked from anonymous/launchrock_adwords.js
Add Google Adwords to Launchrock
// you also have to add the JS from the URL http://www.googleadservices.com/pagead/conversion_async.js in the header,
// so the function window.google_trackConversion is available
angular.module("lrSiteApp").config(function ($httpProvider) {
var httpinterceptor = function () {
return {
response: function (result) {
var isCreateReq = result.config.url.match(/site-users\/create/) !== null;
if (isCreateReq) {
window.google_trackConversion({