Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 1.08 KB

File metadata and controls

45 lines (26 loc) · 1.08 KB

Google Ad Conversion Tracker Plugin

Cordova Plugin for Google App Install and Conversion Event Tracking

Installation:

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.

Usage

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' }).

More Info

see https://developers.google.com/app-conversion-tracking

Credits

Updated and slightly adapted from https://github.com/MyHealthTeams/google-app-conversion-tracker

License

Apache 2.0 License

Copyright (c) 2015 Jnuine