Google Analytics in Turnkey app
(Replacing message template with parser tag)
(Updated Edited template to July 12, 2025.)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<message>Write the content here to display this box</message>
<message>Write the content here to display this box</message>
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.  
To implement Google Analytics integration in the Turnkey application, download the following files and put them into the [[Documentation:AssetsTK|AssetsTK]] folder of your application's model.  


[[File:Google analytics for Turnkey app.zip|thumb|Google Analytics|none]]
[[File:Google analytics for Turnkey app.zip|thumb|Google Analytics|none]]
Line 10: Line 10:
  }]).run(['Analytics', function(Analytics) { }]);</pre>See: https://github.com/revolunet/angular-google-analytics
  }]).run(['Analytics', function(Analytics) { }]);</pre>See: https://github.com/revolunet/angular-google-analytics
[[Category:MDriven Turnkey]]
[[Category:MDriven Turnkey]]
{{Edited|July|12|2024}}
{{Edited|July|12|2025}}

Latest revision as of 05:50, 20 January 2025

This page was created by Denis on 2020-09-30. Last edited by Edgar on 2025-01-20.

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) { }]);

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