Google Analytics in Turnkey app
No edit summary
No edit summary
Line 4: Line 4:


<pre>
<pre>
preformatted
angular.module(MDrivenAngularAppModule).config(['AnalyticsProvider', function (AnalyticsProvider) {
    // Add configuration code as desired
    AnalyticsProvider.setAccount('UU-XXXXXXX-X');  //UU-XXXXXXX-X should be your tracking code
}]).run(['Analytics', function(Analytics) { }]);
</pre>
</pre>


https://github.com/revolunet/angular-google-analytics
https://github.com/revolunet/angular-google-analytics

Revision as of 22:59, 1 October 2020

To implement Google Analytics integration in the Turnkey application download the following files and put them into the AssetsTK folder of your application's model.

File:Google analytics for Turnkey app.zip

angular.module(MDrivenAngularAppModule).config(['AnalyticsProvider', function (AnalyticsProvider) {
    // Add configuration code as desired
    AnalyticsProvider.setAccount('UU-XXXXXXX-X');  //UU-XXXXXXX-X should be your tracking code
 }]).run(['Analytics', function(Analytics) { }]);

https://github.com/revolunet/angular-google-analytics

This page was edited 81 days ago on 02/10/2024. What links here