Cordova Plugin for Google App Install and Conversion Event Tracking
Install with cordova cli:
$ cordova plugin add https://github.com/jnuine/cordova-plugin-google-ad-conversion-tracker.git
Google SDK libraries are included in the plugin.
The plugin creates the object window.GACTracker
.
There's two JS function, trackConversion
and trackRemarketingConversion
:
window.GACTracker.trackConversion(conversionId, label, value, repeatable);
Values for conversionId, label, value, and repeatable are generated by Google when you create a mobile app conversion in your AdWords account.
window.GACTracker.trackRemarketingConversion(conversionId, params);
params
is an object (e.g. { action_type: 'MY_ACTION', other_conversion_param: 'MY_PARAM' }
).
see https://developers.google.com/app-conversion-tracking
Updated and slightly adapted from https://github.com/MyHealthTeams/google-app-conversion-tracker
Apache 2.0 License
Copyright (c) 2015 Jnuine