Remove obsolete code
This commit is contained in:
@@ -3,11 +3,6 @@
|
|||||||
import EventBus from '../_bus'
|
import EventBus from '../_bus'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
|
||||||
conversionId: {
|
|
||||||
default: null
|
|
||||||
}
|
|
||||||
},
|
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
formErrors: {},
|
formErrors: {},
|
||||||
@@ -31,7 +26,6 @@
|
|||||||
this.formErrors = response.errors;
|
this.formErrors = response.errors;
|
||||||
} else {
|
} else {
|
||||||
this.success = true;
|
this.success = true;
|
||||||
this.trackConversion();
|
|
||||||
}
|
}
|
||||||
EventBus.$emit('scrollTo', '#contactform');
|
EventBus.$emit('scrollTo', '#contactform');
|
||||||
},
|
},
|
||||||
@@ -47,19 +41,6 @@
|
|||||||
this.success = false;
|
this.success = false;
|
||||||
this.error = false;
|
this.error = false;
|
||||||
$('#contactform').trigger('reset');
|
$('#contactform').trigger('reset');
|
||||||
},
|
|
||||||
trackConversion () {
|
|
||||||
if (!this.conversionId) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
window.google_trackConversion({
|
|
||||||
google_conversion_id: this.conversionId,
|
|
||||||
google_conversion_language: "de",
|
|
||||||
google_conversion_format: "1",
|
|
||||||
google_conversion_color: "ffffff",
|
|
||||||
google_conversion_label: "lead",
|
|
||||||
google_conversion_value: 0
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user